mirror of
https://github.com/Mastermindzh/dotfiles.git
synced 2024-11-24 15:54:36 +01:00
some more git commands
This commit is contained in:
parent
015f706e54
commit
c07248e89a
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user