Skip to content

Instantly share code, notes, and snippets.

@hmans
Created October 10, 2011 09:31
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 hmans/1274946 to your computer and use it in GitHub Desktop.
Save hmans/1274946 to your computer and use it in GitHub Desktop.
My .gitconfig
# 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
@mediafinger
Copy link

I'd like to add:

[alias]
com = !git add . && git commit -am
sync = !git pull --rebase && git push

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment