gitconfig: add graph and update-with-master

This commit is contained in:
Théophile Bastian 2017-03-31 18:35:41 +02:00
parent 6dcee553ba
commit d8ad6c2cec
1 changed files with 4 additions and 0 deletions

View File

@ -13,3 +13,7 @@
publish = !sh -c 'BRANCH=$(git symbolic-ref --short HEAD) && \
git fetch . $BRANCH:master'
pushblish = !git publish && git push origin master
update-with-master = !sh -c 'BRANCH=$(git symbolic-ref --short HEAD) && \
git checkout master && git pull -r && git checkout "$BRANCH" && \
git rebase master'
graph = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all