![]() ![]() Being a good convention, there's rarely the need to change this. Note that, by default, Git uses the same name for the local branch. (use git pull to merge the remote branch into yours) nothing to commit. 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". 1) git checkout branch (b1,b2,b3) 2) git rebase origin/master (In case of. You can verify this using the git branch command alongside the -r option: git branch -r You can checkout to any of these branches using the git checkout command.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |