How can I switch to another branch in git?

后端 未结 9 654
难免孤独
难免孤独 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:34

    With Git 2.23 onwards, one can use git switch to switch branches.

提交回复
热议问题