Skip to content

Instantly share code, notes, and snippets.

@DavideD
Created February 9, 2018 17:05
Show Gist options
  • Save DavideD/f276653a9f08c22bd8c957760e2aa298 to your computer and use it in GitHub Desktop.
Save DavideD/f276653a9f08c22bd8c957760e2aa298 to your computer and use it in GitHub Desktop.
My gitconfig
[user]
name = Davide D'Alto\n\n
email = davide@hibernate.org
[color]
ui = true
[rerere]
autoupdate = false
enabled = false
[receive]
denyNonFastForwoard = 1
updateierverinfo = 1
[alias]
amend = commit --amend
co = checkout
bd = branch -D
st = status
cm = commit
cmm = commit -m
cp = cherry-pick
br = branch --sort=committerdate
pl = pull
ps = push
fix = commit -a -v -m 'fix'
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
type = cat-file -t
dump = cat-file -p
files = diff --name-only
pom = push origin master
lg = log --color --graph --pretty=format:'%Cred%h%Creset%C(yellow)%d%Creset %s %Cgreen(%an, %cn %cr) %C(bold blue)%Creset' --abbrev-commit -n 35
lga = log --color --graph --pretty=format:'%Cred%h%Creset%C(yellow)%d%Creset %s %Cgreen(%an, %cn, %cr) %C(bold blue)%Creset' --abbrev-commit
fa = fetch --all
bruteclean = !git clean -dxf && git reset --hard
unstash = stash pop
upmaster = pull upstream master
diff = diff --ws-error-highlight=all
rone = reset HEAD^
rhh = reset --hard HEAD
rbb = "rebase -i HEAD~40"
[push]
default = matching
[color "diff"]
whitespace = red reverse
[tig]
vertical-split = false
main-view-date = custom
main-view-date-format = "%Y-%m-%d"
main-view-author-display = abbreviated
main-view-author-width = 10
main-view-id = yes
#[remote "upstream"]
# fetch = +refs/pull/*/head:refs/remotes/up-pr/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment