git checkout origin/branch2You are in 'detachedHEAD' state.You can look around, make experimental
changes and commit them, and you can discard any commits you make为什么在使用origin/时会出现detached <
在结账时,我收到了这样的消息:Note: switching to 'HEAD~2'.You are in a 'detachedHEAD' state.You can look around, make experimental
changes and commit them, and you can discard any commits you</em
如果我使用git checkout HEAD^,我会得到这样的结果:Note: checking out 'HEAD^'.You are in 'detachedHEAD' state.You can look around, make experimental
changes and commit them, and you can discard
You are in 'detachedHEAD' state.You can look around, make experimental
changes and commit them, and you can discard any commits you makeIf you want to create a new branch to retain commits you create, you
如果我仅使用分支机构名称签出分支机构,则HEAD会更新为指向该分支机构。$ git checkout branch如果我使用refs/heads/branch或heads/branch检出一个分支,HEAD将变为分离状态You are in 'detachedHEAD' state.You can look around, make expe
You are in 'detachedHEAD' state.You can look around, make experimental
changes and commit them, and you can discard any commits you makeIf you want to create a new branch to retain commits you create, you
You are in 'detachedHEAD' state.You can look around, make experimental
changes and commit them, and you can discard any commits you makeIf you want to create a new branch to retain commits you create, you
You are in 'detachedHEAD' state.You can look around, make experimental
changes and commit them, and you can discard any commits you makeIf you want to create a new branch to retain commits you create, you
当我使用git checkout origin/mynewbranch进行切换时,文件会更新,但会收到以下消息:experimental changes and commit them, and you can discard any commitsyou make in this state without impact
You are in 'detachedHEAD' state.You can look around, make experimental
changes and commit them, and you can discard any commits you makeIf you want to create a new branch to retain commits you create, you