Using `git checkout -b` with and without a branch starting point -
i new git, want know difference between 2 commands.
`git checkout -b <branch-name>` `git checkout -b <branch-name> origin/master` if execute first command, how git create branch? branch created local master or remote master? please me out.
if don't specify starting point, new branch created have checked out (the current head).
git checkout -b|-b <new_branch> [<start point>]specifying
-bcauses new branch created as if git-branch(1) called , checked out.
and git-branch:
[...] command’s second form creates new branch head named
<branchname>points currenthead, or<start-point>if given.
Comments
Post a Comment