some more git commands

This commit is contained in:
Rick van Lieshout 2018-08-29 09:10:08 +02:00
parent 015f706e54
commit c07248e89a
2 changed files with 4 additions and 0 deletions

View File

@ -65,6 +65,9 @@ alias sudo='sudo '
# grub
alias update-grub='grub-mkconfig -o /boot/grub/grub.cfg'
# git
alias gitremovelocalbranches='git branch --merged | egrep -v "(^\*|master|dev)" | xargs git branch -d'
## Functions
# function to cd up a couple of times

View File

@ -7,3 +7,4 @@
stats = !git graph --stat
pushall = !git remote | xargs -L1 git push --all
diffname = !git diff --name-only
undocommit = reset --soft HEAD~1