Skip to content

Instantly share code, notes, and snippets.

@cebe
Last active May 1, 2016 01:48
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save cebe/1166792 to your computer and use it in GitHub Desktop.
Save cebe/1166792 to your computer and use it in GitHub Desktop.
My git config
# git bash completion
. /usr/local/git/contrib/completion/git-completion.bash
alias g="git status"
[user]
name = Carsten Brandt
email = mail@cebe.cc
[alias]
# more on https://git.wiki.kernel.org/index.php/Aliases
st = status
co = checkout
ci = commit
cia = commit -a
br = branch
brr = branch -a
l = log --pretty=format:\"%h %an - %Cblue%d%Creset %s\"
ll = log --pretty=format:\"%h %ad %an - %Cblue%d%Creset %s\" --graph --date=rfc
lg = log --name-status --decorate=full --graph
last = cat-file commit HEAD
sm = submodule
smu = submodule update
noffmerge = merge --no-ff
fetchall = fetch --all -p -t -v
# rnew is not realy what I wanted yet, so handle with care!
rnew = log --name-status --decorate=full --graph master..origin/master
lnew = log --name-status --decorate=full --graph ORIG_HEAD.. --stat
# find unmerged branches
unmerged = branch --no-merged
[core]
editor = /usr/bin/vi
excludesfile = ~/.gitignore_global
# always commit unix line endings (http://help.github.com/line-endings/)
autocrlf = input
[color]
diff = auto
status = auto
branch = auto
interactive = auto
[merge]
summary = true
[rebase]
stat = true
[mergetool]
keepBackup = true
[push]
default = simple
# ~/.gitignore_global
#
# phpstorm ide files
.idea/*
# Mac stuff
.DS_Store
# bbedit project files
*.bbproject
*.bbprojectd
# ignore copied svn files
.svn/*
# temporary files
#gedit
*~
#vim
.*.swp
@cebe
Copy link
Author

cebe commented Aug 24, 2011

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