Created
June 23, 2017 10:07
-
-
Save mukkoo/ed336522c5380e633ca13d48e192829f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# [user] | |
# name = Nome Cognome | |
# email = [email protected] | |
[alias] | |
# shortcuts | |
ci = commit | |
co = checkout | |
di = diff | |
dc = diff --cached | |
addp = add -p . | |
st = status | |
ss = status --short | |
# info | |
last = log -1 HEAD | |
log-file = log --follow --patch -- | |
# undo | |
unadd = reset HEAD -- | |
unstage = reset HEAD -- | |
unch = checkout -- | |
unci = reset --soft | |
rmun = clean -f | |
# branches | |
branches = branch -av | |
br = checkout | |
newbr = checkout -b | |
rmbr = branch -d | |
menoff = merge --no-ff | |
# assume-unchanged | |
assume = update-index --assume-unchanged | |
unassume = update-index --no-assume-unchanged | |
assumed = "!git ls-files -v | grep ^h | cut -c 3-" | |
unassumeall = "!git assumed | xargs git update-index --no-assume-unchanged" | |
assumeall = "!git st -s | awk {'print $2'} | xargs git assume" | |
# log | |
l = log --oneline --decorate --graph --branches --remotes -20 | |
ll = log --oneline --decorate --stat --graph | |
ls = log --oneline --decorate --graph --branches --remotes --simplify-by-decoration | |
t = log --oneline --decorate --graph --branches --remotes -20 --pretty=format:'%C(yellow)%h%C(red bold)%d %Creset%s %C(green)(%ar) %C(cyan)<%cn>' --date=relative | |
# list aliases | |
al = !git config --get-regexp 'alias.*' | colrm 1 6 | sed 's/[ ]/ = /' | |
# tag | |
tags = tag | |
lasttag = describe --tags --abbrev=0 | |
# others | |
reco = commit --amend | |
resolved = add | |
remotes = remote -v | |
[color] | |
ui = auto | |
[color "branch"] | |
current = yellow reverse | |
local = yellow | |
remote = green | |
[color "diff"] | |
meta = yellow bold | |
frag = magenta bold | |
old = red bold | |
new = green bold | |
[color "status"] | |
added = green | |
changed = yellow | |
untracked = red | |
[core] | |
excludesfile = ~/.gitignore_global | |
editor = vim | |
pager = less -r | |
[diff] | |
tool = vimdiff | |
compactionHeuristic = 1 | |
[pull] | |
rebase = true | |
[push] | |
default = current | |
[pager] | |
log = 'diff-highlight | less' | |
show = 'diff-highlight | less' | |
diff = 'diff-highlight | less' | |
[interactive] | |
diffFilter = diff-highlight |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment