checkout to remote branch which is fetched locally
This question already has an answer here:
I believe you need to clone your remote branches locally if you want to make changes in the remote. When you checkout a remote branch by issuing git checkout remotes/origin/develop
, you will go into a detached HEAD
state, which essentially means you are not on any branch right then.
上一篇: 如何在基于远程分支的git中创建分支
下一篇: 结帐到本地获取的远程分支