1
我创建了一个新的分支并添加了一些文件。切换git分支不更新文件
本地我使用龟GIT,当我切换到新的分支,文件被更新。
在使用CLI的我的生产服务器上,当我切换到git checkout mynewbranch
的新分支时,文件不会更新。
当我git checkout origin/mynewbranch
切换时,文件被更新,但我得到了以下信息:
You are in 'detached HEAD' state. You can look around, make
experimental changes and commit them, and you can discard any commits
you make in this state without impacting any branches by performing
another checkout.
这是为什么?
完美运行。 –