当我做git checkout origin/bugfix/NTP-183-datefns
混帐显示Git结帐差异git结帐来源/ <branch-name>和git结帐<branch-name>?
Note: checking out 'origin/bugfix/NTP-183-datefns'.
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.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b <new-branch-name>
HEAD is now at 6fd089d.
但是当我尝试git checkout bugfix/NTP-183-datefns
Switched to branch 'bugfix/NTP-183-datefns'
Your branch is up-to-date with 'origin/bugfix/NTP-183-datefns'.
这到底是怎么回事?
我不完全确定我理解这个问题。 “这里发生了什么”似乎已经被你已经发布的文本解释得相当好。如果有部分内容您不明白,请解释哪些部分是。只是fyi,你不能检查一个远程分支,这就是为什么当你尝试它时最终处于分离的头部状态。 –