Light in terms of the data they carry and the little mess they create. As soon as the repository creates, so does the main branch ( or the default branch ). Being a good convention, there's rarely the need to change this. git status On branch master Your branch is up to date with origin/master. The primary or default branch in Git is the master branch (similar to a trunk of the tree). Note that, by default, Git uses the same name for the local branch. The syntax for making git checkout "remote-ready" is rather easy: simply add the "-track" flag and the remote branch's ref like in the following example: $ git checkout -track origin/newsletterīranch newsletter set up to track remote branch newsletter from origin.īased on the remote branch "origin/newsletter", we now have a new local branch named "newsletter".
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |