Add some git shortcuts
This commit is contained in:
@@ -13,6 +13,7 @@
|
|||||||
visual = "!gitk --all"
|
visual = "!gitk --all"
|
||||||
staged = "diff --staged"
|
staged = "diff --staged"
|
||||||
|
|
||||||
|
fe = "fetch --all --prune"
|
||||||
co = "checkout"
|
co = "checkout"
|
||||||
ci = "commit"
|
ci = "commit"
|
||||||
st = "status"
|
st = "status"
|
||||||
@@ -34,7 +35,8 @@
|
|||||||
|
|
||||||
pushall = "!sh -c 'for r in $(git remote) ; do [[ "$r" != "upstream" ]] && { echo \"--- [$r] ---\" ; git push $r \"$@\" ; } ; done' -"
|
pushall = "!sh -c 'for r in $(git remote) ; do [[ "$r" != "upstream" ]] && { echo \"--- [$r] ---\" ; git push $r \"$@\" ; } ; done' -"
|
||||||
|
|
||||||
branch-clean = "!sh -c 'git branch --merged | grep -v master | xargs --no-run-if-empty git branch -d'"
|
branch-clean = "!sh -c 'git branch --merged | grep -v -e master -e develop -e '^*' | xargs --no-run-if-empty git branch -d'"
|
||||||
|
brc = "!git branch-clean"
|
||||||
|
|
||||||
graph = log --graph --pretty=format:'%C(yellow)%h%Creset%C(bold red)% D%Creset %C(green)(%cr) %C(blue)%an<%ae>%Creset%n %C(bold white)%s%Creset' --all
|
graph = log --graph --pretty=format:'%C(yellow)%h%Creset%C(bold red)% D%Creset %C(green)(%cr) %C(blue)%an<%ae>%Creset%n %C(bold white)%s%Creset' --all
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user