Skip to content

Instantly share code, notes, and snippets.

@matomesc
Created January 17, 2013 02:21
Show Gist options
  • Save matomesc/4552974 to your computer and use it in GitHub Desktop.
Save matomesc/4552974 to your computer and use it in GitHub Desktop.
My .gitconfig
[user]
name = Mihai Tomescu
email = [email protected]
[core]
excludesfile = ~/.gitignore
[alias]
st = status
ci = commit
br = branch
co = checkout
df = diff
dc = diff --cached
lg = log -p
l = log --graph --decorate --pretty=oneline --abbrev-commit
ll = log --pretty=format:'%h : %s' --graph --decorate
la = log --graph --decorate --pretty=oneline --abbrev-commit --all
ls = ls-files
rb = rebase
com = checkout master
rem = rebase master
now = diff HEAD
stache = stash
ss = stash
sub = submodule
po = push origin
poc = push origin HEAD
[color]
# Use colors in Git commands that are capable of colored output when outputting to the terminal
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 = yellow
changed = green
untracked = cyan
[merge]
# Include summaries of merged commits in newly created merge commit messages
log = true
# Use `origin` as the default remote on the `master` branch in all cases
[branch "master"]
remote = origin
merge = refs/heads/master
[apply]
ignorewhitespace = change
whitespace = nowarn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment