How can I switch to another branch in git?

后端 未结 9 841
难免孤独
难免孤独 2021-01-29 17:38

Which one of these lines is correct?

git checkout \'another_branch\'

Or

git checkout origin \'another_branch\'
         


        
9条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-29 18:17

    I am using this to switch one branch to another anyone you can use it works for me like charm.

    git switch [branchName] OR git checkout [branchName]

    ex: git switch develop OR
    git checkout develop

提交回复
热议问题