在 Github "Sorry, a file exists where you’re trying to create a subdirectory. Choose a new path and try again" 中收到错误消息

getting an error message in Github "Sorry, a file exists where you’re trying to create a subdirectory. Choose a new path and try again"

为什么当我尝试在我的存储库中提交时出现“抱歉,您尝试创建子目录的位置存在一个文件。选择一个新路径并重试”这样的语句,有没有人遇到同样的问题?我该如何解决这个错误?

我在尝试创建与分支上现有文件同名的文件夹时看到此错误。

因此,查找一个文件并重命名它,或者只是更改您要创建的文件夹的名称。

删除文件也是一个简单的过程。