Skip to content

Instantly share code, notes, and snippets.

@faloi
Last active October 12, 2015 18:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save faloi/4069465 to your computer and use it in GitHub Desktop.
Save faloi/4069465 to your computer and use it in GitHub Desktop.
My gitconfig file
[color]
ui = true
[user]
name = Federico Aloi
email = federico.aloi@gmail.com
[alias]
all = commit -a -m
amend = commit --amend --no-edit
adduntracked = !git add $(git ls-files -o --exclude-standard)
discard = checkout --
co = commit -m
undo = checkout .
showalias = config --get-regexp alias
unstage = reset HEAD
remove = config --global --unset
update = pull --rebase origin master
change = !git stash && git rebase -i $1^ && git stash pop
continue = rebase --continue
rename = commit --amend -m
br = checkout -b
mr = checkout master
ch = checkout
delbr = !git push --delete origin
deploy = !git push origin +HEAD:staging/$(git rev-parse --abbrev-ref HEAD)
logfiles = log --stat
addnw = !git diff -w --no-color | git apply --cached --ignore-whitespace
removeignored = !git rm -r --cached . && git add .
undolast = reset --soft HEAD^
deltag = !git tag -d $1 && git push --delete origin $1
cl = clean -fd
[push]
default = current
[merge]
tool = meld
[mergetool "mymeld"]
cmd = meld --diff $BASE $LOCAL --diff $BASE $REMOTE --diff $LOCAL $BASE $REMOTE $MERGED
[mergetool]
keepBackup = false
[core]
autocrlf = input
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment