git

git-branch

branch

create branch

1
$ git branch {{branch-name}}

see branch info -> log with decorate option.

1
$ git log --decorate

switch to branch

1
$ git checkout {{branch-name}}

with create branch: -b option

merge

1
$ git checkout {{master-branch}}
2
$ git merge {{branch-name}}

delete branch

when merged well, delete branch

1
$ git branch -d {{branch-name}}
Share