Pagine

Thursday 4 May 2017

How to create a branch with git

Create a local branch from current branch:
 git checkout -b <new_branch>
Otherwise you can use the following command:
 git checkout -b <new_branch> <start_point>
where the start point can be an other branch or a tag.
Now if the new branch must become a remote branch then use also the following command:
 git push origin <new_branch>

No comments:

Post a Comment