Created
October 10, 2011 09:31
-
-
Save hmans/1274946 to your computer and use it in GitHub Desktop.
My .gitconfig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# User information. Replace with your own data, obviously. | |
# | |
[user] | |
name = Hendrik Mans | |
email = hendrik@mans.de | |
# Automatically track branches with the same name | |
# | |
[branch] | |
autosetupmerge = true | |
# Push the current branch as the default behaviour | |
# | |
[push] | |
default = current | |
# Include a summary of changes in merge commit messages. | |
# | |
[merge] | |
summary = true | |
# Color configuration. | |
# | |
[color] | |
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 | |
whitespace = red reverse | |
[color "status"] | |
added = yellow | |
changed = green | |
untracked = cyan | |
# Whitespace handliong | |
# | |
[core] | |
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol | |
# Useful aliases | |
# | |
[alias] | |
st = status | |
ci = commit | |
br = branch | |
co = checkout | |
df = diff | |
dc = diff --cached | |
lg = log -p | |
lol = log --graph --decorate --pretty=oneline --abbrev-commit | |
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all | |
ls = ls-files |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'd like to add:
[alias]
com = !git add . && git commit -am
sync = !git pull --rebase && git push