Last active
September 25, 2015 14:38
-
-
Save dhrrgn/937320 to your computer and use it in GitHub Desktop.
An awesome .gitconfig file with some niceties.
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] | |
name = Your Name | |
email = [email protected] | |
[core] | |
autocrlf = input | |
[color] | |
status = auto | |
diff = auto | |
branch = auto | |
[alias] | |
st = status | |
ci = commit | |
co = checkout | |
cm = commit -m | |
br = branch | |
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short | |
[merge] | |
tool = opendiff |
Here is what I have for colors:
[color]
diff = auto
status = auto
branch = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = cyan
[core]
editor = mate -w
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I also have:
[alias] ac = !git add -A && git commit