How to switch back to 'master' with git?

前端 未结 5 627
无人共我
无人共我 2021-01-30 02:43

I have made my first commit; then created a branch (let\'s say branch1).

In this branch I\'ve created a directory \'example\' and commited. In GitHub I see my new branch

5条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-30 03:12

    According to the Git Cheatsheet you have to create the branch first

    git branch [branchName]
    

    and then

    git checkout [branchName]
    

提交回复
热议问题