Created
September 30, 2014 09:53
-
-
Save jbfarez/aa0e240e1f426f7e65ae to your computer and use it in GitHub Desktop.
Git config file template
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 = <USERNAME> | |
email = <E-MAIL> | |
[core] | |
excludesfile = ~/.gitignore | |
[branch] | |
autosetuprebase = always | |
[color] | |
ui = true | |
interactive = auto | |
[color.status] | |
changed = yellow bold | |
added = green bold | |
removed = red bold | |
untracked = cyan bold | |
[color.branch] | |
current = green bold | |
local = yellow bold | |
remote = red bold | |
[color.diff] | |
frag = magenta bold | |
old = red bold | |
new = green bold | |
[alias] | |
lol = log --graph --decorate --pretty=format:'%C(magenta)%h%C(reset) -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(cyan)<%an>%Creset' --abbrev-commit | |
lola = log --graph --decorate --pretty=format:'%C(magenta)%h%C(reset) -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(cyan)<%an>%Creset' --abbrev-commit --all | |
st = status | |
ci = commit | |
br = branch | |
co = checkout | |
lpush = "!git log origin/$(git currentbranch)..HEAD" | |
lpull = "!git log HEAD..origin/$(git currentbranch)" | |
whatsnew = "!git diff origin/$(git currentbranch)...HEAD" | |
whatscoming = "!git diff HEAD...origin/$(git currentbranch)" | |
currentbranch = "!git branch | grep \"^\\*\" | cut -d \" \" -f 2" | |
cam = commit -a -m | |
w = whatchanged | |
pull = pull --rebase | |
[push] | |
default = simple |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment