Can't see remote branch

后端 未结 2 948
一向
一向 2021-02-02 14:16

I\'m stil learning git and not sure how some basic things work. I created a local branch by doing:

git branch AppStore

I can\'t remember exactl

2条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-02 14:45

    When you do a git branch xyz it creates a branch xyz on your local machine. Generally you create a new branch off the master branch so that it has the master's code. After creating the branch xyz, you make changes and then you have to git push origin xyz for the branch to be visible on github.

    Doing git branch -a will show your branches in your machine. Till you push your branch you cannot find it on the remote repo.

提交回复
热议问题