I am very new to Git.
Tutorial
demo-branch
and tutorial-branch
, one by one, and did some changed and pushedmaster
and above twoHowever, when I visit GitHub online in browser, it shows me only two branches
Why is master
branch not shown ? Am I conceptually missing something ?
If you didn't push master
to GitHub, you can't see master
branch on GitHub.
I assumed you created Tutorial
repo from bash, not from GitHub. master
branch is automatically created by Git on a new repository but not pushed. To get the branch on GitHub do git push origin master:master
.
This command push onto origin
git repository the local branch master
to remote branch master
and create it if needed.
origin
is the default name of remote repository. In your case this is your GitHub repository.master
branch is your ... local master branchmaster
is the branch on origin
remote, so GitHub. This one is updated when user push onto master
branch
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.