相关疑难解决方法(0)

git checkout 区别 git checkout origin/<branch-name> 和 git checkout <branch-name>?

当我做git checkout origin/bugfix/NTP-183-datefnsgit 显示时

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 …
Run Code Online (Sandbox Code Playgroud)

git

4
推荐指数
1
解决办法
1781
查看次数

标签 统计

git ×1