windows - Git 发出警告 : unable to rmdir

标签 windows git bash ionic-framework

我在 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/

相关文章:

windows - 用于 Windows 的 git-slave

c++ - 来自 Win32 的 Cortana

git - 如何在本地计算机上进行 git rebase 后删除存储库中的 "branch"

bash - awk:用另一个文件过滤一个文件的更优雅的方法

php - 将参数从 bash 文件传递​​到 php(带空格的长字符串)

linux - Bash:更新文件中的变量

c - 测试文件/目录是否只读

c++ - 如何以编程方式删除 Windows 中损坏的快捷方式

git - 拆分一个 ikiwiki

git - 关于 Git 的 merge 和 rebase