我在 Windows 10 上使用 git bash,最近更新到 creators update。
每当我尝试在分支之间切换时,我都会得到以下信息
$ git fetch && git checkout master
warning: unable to rmdir Ionic_Developemnt: Directory not empty
Checking out files: 100% (6312/6312), done.
Switched to branch 'master'
Your branch is up-to-date with 'origin/master'.
我不知道为什么会这样,而且 Ionic_Development 文件夹中有一个 .git stash 文件夹
任何人都可以帮助解决这个为什么这么错误 _/_
最佳答案
warning: unable to rmdir
on git checkout
意味着你要切换到这个目录不存在的分支; git 尝试删除它但是有一些 git 无法删除的临时文件;该目录不为空,因此 git 也无法将其删除,因此出现警告。
关于windows - Git 发出警告 : unable to rmdir,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45215094/