After Git clone from GitHub, I do not see my branch

后端 未结 3 1377
眼角桃花
眼角桃花 2021-01-29 21:28

I have a repository on GitHub. It contains master and one branch.

When I clone it, I obtain only master and do not see my branch.

Why i

3条回答
  •  执念已碎
    2021-01-29 21:58

    Use:

    git branch -r
    

    This will show you all remote branches. You can then do:

    git branch -t my_local_branch origin/remote_branch
    git checkout my_local_branch
    

    Then do your work and then push to the remote branch.

提交回复
热议问题