mirror of
				https://github.com/frebib/dotfiles.git
				synced 2024-06-14 12:57:23 +00:00 
			
		
		
		
	Compare commits
	
		
			3 Commits
		
	
	
		
			frebib-PC
			...
			9331a74266
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						
						
							
						
						9331a74266
	
				 | 
					
					
						|||
| 
						
						
							
						
						cfbe6d6f0f
	
				 | 
					
					
						|||
| 
						
						
							
						
						509551f717
	
				 | 
					
					
						
							
								
								
									
										7
									
								
								aliases
									
									
									
									
									
								
							
							
						
						
									
										7
									
								
								aliases
									
									
									
									
									
								
							@@ -119,6 +119,7 @@ alias gau="git add -u"
 | 
			
		||||
alias gaN="git add -N"
 | 
			
		||||
alias gaa="ga -A"
 | 
			
		||||
alias grm="git rm"
 | 
			
		||||
alias gmv="git mv"
 | 
			
		||||
alias gc="git commit -s"
 | 
			
		||||
alias gcm="git commit -s -em"
 | 
			
		||||
alias gca="git commit -s --amend --date=\"\$(date -R)\""
 | 
			
		||||
@@ -126,6 +127,7 @@ alias gcn="git commit -s --no-edit"
 | 
			
		||||
alias gcan="gca -s --no-edit"
 | 
			
		||||
alias gcam="gca -s -m"
 | 
			
		||||
alias gst="git status"
 | 
			
		||||
alias grl="git reflog"
 | 
			
		||||
 | 
			
		||||
alias gm="git merge"
 | 
			
		||||
alias gma="git merge --abort"
 | 
			
		||||
@@ -137,8 +139,8 @@ alias grbc="grb --continue"
 | 
			
		||||
alias grbsk="grb --skip"
 | 
			
		||||
alias grbsh="grb --show-current"
 | 
			
		||||
alias grbom="git rebase \"origin/\$(git defbranch)\""
 | 
			
		||||
gfrb() { remote="${1%/*}"; git fetch "$remote" && git rebase "$@"; }
 | 
			
		||||
gfrbi() { remote="${1%/*}"; git fetch "$remote" && git rebase -i "$@"; }
 | 
			
		||||
gfrb() { remote="${1%%/*}"; git fetch "$remote" && git rebase "$@"; }
 | 
			
		||||
gfrbi() { remote="${1%%/*}"; git fetch "$remote" && git rebase -i "$@"; }
 | 
			
		||||
 | 
			
		||||
alias gam="git am"
 | 
			
		||||
alias gama="git am --abort"
 | 
			
		||||
@@ -175,6 +177,7 @@ alias glog="git log --color --oneline --decorate --graph"
 | 
			
		||||
alias grst="git reset"
 | 
			
		||||
alias gundo="git reset --keep @~1"
 | 
			
		||||
alias gclean="git clean"
 | 
			
		||||
alias gclm="git cleanmerged"
 | 
			
		||||
alias gbr="git branch"
 | 
			
		||||
alias gbrl="git for-each-ref --sort=committerdate refs/heads/ --format=\"%(refname:short)\" | fzf -x --ansi --multi --preview-window=right:70% --preview=\"git log --format=fuller --stat --color=always {} | head -n\$((\$(tput lines)*10))\""
 | 
			
		||||
alias gtg="git tag"
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										18
									
								
								git/config
									
									
									
									
									
								
							
							
						
						
									
										18
									
								
								git/config
									
									
									
									
									
								
							@@ -37,7 +37,23 @@
 | 
			
		||||
	count = !echo $(pwd) && git rev-list HEAD --count
 | 
			
		||||
	unpushed = !git log --oneline @{u}..HEAD
 | 
			
		||||
	leaders = !git shortlog -s -n --all --no-merges
 | 
			
		||||
	defbranch = !git symbolic-ref refs/remotes/origin/HEAD | sed \"s@^refs/remotes/origin/@@\"
 | 
			
		||||
	defbranch = "!defbranch() { \
 | 
			
		||||
		r=\"${1:-origin}\"; \
 | 
			
		||||
		{ \
 | 
			
		||||
			git symbolic-ref \"refs/remotes/$r/HEAD\" || { \
 | 
			
		||||
				git remote set-head \"$r\" -a >&2 && \
 | 
			
		||||
				git symbolic-ref \"refs/remotes/$r/HEAD\"; \
 | 
			
		||||
			}; \
 | 
			
		||||
		} 2>/dev/null \
 | 
			
		||||
			| sed \"s@^refs/remotes/$r/@@\"; \
 | 
			
		||||
	}; defbranch"
 | 
			
		||||
	cleanmerged = "!cleanmerged() { \
 | 
			
		||||
		r=\"${1:-origin}\"; \
 | 
			
		||||
		b=\"${2:-$(git defbranch \"$r\")}\"; \
 | 
			
		||||
		git branch --merged \"$r/$b\" | \
 | 
			
		||||
			grep -ve \"^\\\\*\" -e \"^. $b$\" | \
 | 
			
		||||
			xargs -r git branch -d; \
 | 
			
		||||
	}; cleanmerged"
 | 
			
		||||
[advice]
 | 
			
		||||
	statusHints = false
 | 
			
		||||
	pushUpdateRejected = false
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user