For example, if you wanted to create a new branch from the master branch from the origin remote, using this would set it up so it would pull from the remote and branch automatically: When branches are created using the -track option, they will be set up to linked to the remote branch. If you wanted to see remote branches:Īnd finally, if you wanted to see them all: This just shows the default local branch, the master branch. For most normal, freshly cloned repositories, you’ll see this output: Luckily, the git branch command gives us some insight to what branch is what.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |