Skip to content

Instantly share code, notes, and snippets.

@snurkabill
Forked from fprochazka/.gitconfig
Created February 21, 2016 14:02
Show Gist options
  • Save snurkabill/f250ea5da0c9b87afd89 to your computer and use it in GitHub Desktop.
Save snurkabill/f250ea5da0c9b87afd89 to your computer and use it in GitHub Desktop.
.gitconfig
[user]
name = Filip Procházka
email = filip@prochazka.su
[github]
token = 123
user = fprochazka
[core]
whitespace = fix,-indent-with-non-tab,space-before-tab,trailing-space,cr-at-eol
autocrlf = input
filemode = false
excludesfile = /home/fprochazka/.gitignore_global
editor = nano
pager = /usr/local/share/git/contrib/diff-highlight/diff-highlight | less
[branch]
autosetuprebase = always
[diff]
algorithm = patience
mnemonicprefix = true
renames = copies
[push]
default = current
[pull]
rebase = true
[advice]
statusHints = false
pushNonFastForward = false
[remote]
pushdefault = origin
[alias]
unstage = reset HEAD --
deploy = "! ~/bin/git-deploy"
wip = !git add --all && git commit -m WIP
k = !gitk
co = checkout
cp = cherry-pick
st = status
ap = add -p
pu = pull
pr = pull --rebase
ci = commit
qci = commit
cia = commit --amend
cif = !git commit --fixup=$(git-log-vgrep-most-recent-commit 'fixup!')
rb = rebase
rbi = rebase -i --autosquash
rba = rebase --abort
rbc = rebase --continue
rbs = rebase --skip
br = branch -v
b = branch -v
d = diff
dc = diff --cached
dw = diff --word-diff
mb = merge --no-ff
ff = merge --ff-only
f = fetch
fetch = fetch --all --prune
up = "!git stash && git fetch && git pull upstream"
pu = "up && git push upstream master"
l = log --graph --decorate --oneline --all --no-merges
ls = "log --stat -m"
lp = "l -p"
lw = "l -p --color-words"
g = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
gp = "g -p"
gw = "g -p --color-words"
gs = "g --stat"
h = !git --no-pager log upstream/master..HEAD --abbrev-commit --pretty=oneline
find = !sh -c 'git ls-tree -r --name-only HEAD | grep --color $1' -
cleanup = !git branch --merged master | grep -v 'master$' | xargs git branch -d
cf = show --pretty="format:" --name-only
permission-reset = "!git diff -p | grep -E '^(diff|old mode|new mode)' | sed -e 's/^old/NEW/;s/^new/old/;s/^NEW/new/' | git apply"
[color]
branch = auto
diff = auto
status = auto
sh = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red
new = green
whitespace = red reverse
[color "status"]
added = green
changed = red
untracked = cyan
[color "sh"]
branch = yellow
[url "git@github.com:"]
insteadOf = "gh:"
pushInsteadOf = "github:"
pushInsteadOf = "git://github.com/"
[url "git://github.com/"]
insteadOf = "github:"
[url "git@gist.github.com:"]
insteadOf = "gst:"
pushInsteadOf = "gist:"
pushInsteadOf = "git://gist.github.com/"
[url "git://gist.github.com/"]
insteadOf = "gist:"
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
############
# it's better to unpack these files and commit the raw source
# git has its own built in compression methods
*.7z
*.dmg
*.gz
*.iso
#*.jar
*.rar
*.tar
*.zip
# Logs and databases #
######################
*.log
#*.sql
#*.sqlite
# OS generated files #
######################
.DS_Store*
ehthumbs.db
Icon?
Thumbs.db
# IDE generated files #
#######################
.project
.idea
# Other #
#########
.svn
.buildpath
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment