git: bn + pushu
This commit is contained in:
parent
b64604c549
commit
353671f268
1 changed files with 2 additions and 0 deletions
|
|
@ -22,6 +22,7 @@ default = simple
|
||||||
[alias]
|
[alias]
|
||||||
ap = add -p
|
ap = add -p
|
||||||
b = branch
|
b = branch
|
||||||
|
bn = symbolic-ref --short HEAD
|
||||||
bv = branch -vv
|
bv = branch -vv
|
||||||
c = commit
|
c = commit
|
||||||
chk = commit -a -n -m 'CHECKPOINT'
|
chk = commit -a -n -m 'CHECKPOINT'
|
||||||
|
|
@ -38,6 +39,7 @@ lag = log --graph --decorate --pretty='%C(auto)%h%d %s | %C(cyan)%an%C(reset) %C
|
||||||
lg = log --graph --decorate --pretty='%C(auto)%h%d %s | %C(cyan)%cn%C(reset) %C(green)<%cr>%C(reset)'
|
lg = log --graph --decorate --pretty='%C(auto)%h%d %s | %C(cyan)%cn%C(reset) %C(green)<%cr>%C(reset)'
|
||||||
mb = merge-base HEAD
|
mb = merge-base HEAD
|
||||||
pushf = push --force-with-lease
|
pushf = push --force-with-lease
|
||||||
|
pushu = "!pushu() { git push --set-upstream \"${1:-origin}\" \"${2:-$(git bn)}\"; }; pushu"
|
||||||
rb = rebase
|
rb = rebase
|
||||||
root = rev-parse --show-toplevel
|
root = rev-parse --show-toplevel
|
||||||
sb = show-branch
|
sb = show-branch
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue