Skip to content

Instantly share code, notes, and snippets.

@juanghurtado
Created October 17, 2013 06:52
Show Gist options
  • Save juanghurtado/7020192 to your computer and use it in GitHub Desktop.
Save juanghurtado/7020192 to your computer and use it in GitHub Desktop.
Git config file
[credential]
helper = osxkeychain
[core]
editor = mvim -vf
excludesfile = ~/.gitignore
pager = less -x2
[alias]
st = status -sb
ci = commit -m
am = commit --amend -C HEAD
co = checkout
br = branch -va
brd = branch -D
undo = reset --soft HEAD^
unmerged = ls-files --unmerged
untracked = ls-files --other --exclude-standard
ignored = ls-files --ignored --exclude-standard
l = "!source ~/.githelpers && pretty_git_log"
l5 = !git l --max-count=5
l10 = !git l --max-count=10
last = !git l -1
local = !git l `git rev-parse --symbolic-full-name --abbrev-ref HEAD@{u}`..HEAD
since-last-tag = !git l `git describe --tags --abbrev=0`..HEAD
archive-last-tag = !git archive --format=zip `git describe --tags --abbrev=0` > `git describe --tags --abbrev=0`.zip
[color]
branch = auto
diff = auto
interactive = auto
status = auto
ui = auto
[apply]
whitespace = nowarn
[push]
default = matching
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment