Add newbranch alias to git
This commit is contained in:
parent
5f68a0e3aa
commit
0018d08a75
1 changed files with 2 additions and 1 deletions
|
@ -10,7 +10,8 @@
|
|||
[core]
|
||||
pager = cat
|
||||
[alias]
|
||||
tree = log --show-signature --color --decorate --date=short --all --graph -n 8
|
||||
tree = log --show-signature --color --decorate --date=short --all --graph -n 3
|
||||
newbranch = !git checkout master && git fetch -p && git reset --hard origin/master && git checkout -b "$2"
|
||||
head = log HEAD -n1
|
||||
[core]
|
||||
autocrlf = false
|
||||
|
|
Loading…
Reference in a new issue