mirror of
https://github.com/Mastermindzh/dotfiles.git
synced 2024-11-22 06:44:41 +01:00
some more git commands
This commit is contained in:
parent
015f706e54
commit
c07248e89a
@ -65,6 +65,9 @@ alias sudo='sudo '
|
|||||||
# grub
|
# grub
|
||||||
alias update-grub='grub-mkconfig -o /boot/grub/grub.cfg'
|
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
|
## Functions
|
||||||
|
|
||||||
# function to cd up a couple of times
|
# function to cd up a couple of times
|
||||||
|
@ -7,3 +7,4 @@
|
|||||||
stats = !git graph --stat
|
stats = !git graph --stat
|
||||||
pushall = !git remote | xargs -L1 git push --all
|
pushall = !git remote | xargs -L1 git push --all
|
||||||
diffname = !git diff --name-only
|
diffname = !git diff --name-only
|
||||||
|
undocommit = reset --soft HEAD~1
|
||||||
|
Loading…
Reference in New Issue
Block a user