mirror of
				https://github.com/Mastermindzh/dotfiles.git
				synced 2025-11-04 02:38:53 +01:00 
			
		
		
		
	some more git commands
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user