因此,在名为“beta”的分支上执行以下操作:
$ git checkout master
error: The following untracked working tree files would be overwritten by checko
ut:
Documentation/packages/CoreTheme_Template_helpers.html
Documentation/packages/default.html
Please move or remove them before you can switch branches.
Aborting
好的,
$ git status
# On branch beta
nothing to commit, working directory clean
发生了什么事情?
.git/info/exclude
吗?因为是否需要忽略Documentation/*
目录或文件呢? - Anshul Goyalbeta
分支上是否存在Documentation/Packages/*
文件。 - Anshul GoyalDocumentation/
或Documentation/Packages/
目录中有一个.gitignore
文件,因此也要检查它们。 - Anshul Goyal