Created
May 10, 2013 13:56
-
-
Save andrefs/5554552 to your computer and use it in GitHub Desktop.
Examples of useful stuff to have in your global git config file
This file contains hidden or 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] | |
name = User Name # to be used in commits | |
email = user@email # to be used in commits | |
[difftool] | |
prompt = false | |
[diff] | |
tool = meld # use meld as 'git difftool' application | |
[color] | |
ui = true | |
diff = auto | |
status = auto | |
branch = auto | |
[alias] | |
st = status | |
lcb = commit -am 'LCB (last commit bits)' | |
atp = commit -am 'ATP (all tests passing)' | |
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit | |
lga = log --color --graph --branches --decorate --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit | |
cam = commit -am | |
ls = diff-tree --no-commit-id --name-only -r | |
cba = shortlog -s -n | |
cbaa = shortlog -s -n --all | |
day = log --color --pretty=format:'%Cgreen[%ci] %C(bold blue)%an%Creset%x09%C(yellow)%d%Creset %s' --abbrev-commit --since="0am" --all | |
la = !grep '\t=' ~/.gitconfig | |
#la = ! git config --get-regexp alias | sed 's/^alias\.//' | awk '{ printf $1; $1=""; print "\t= " $0 }' | |
[core] | |
excludesfile = /home/andrefs/.gitignore | |
editor = vim |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment