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 |
Awesome thanks, I added a few of them.
I also have:
[alias] ac = !git add -A && git commit
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
Nice list! I wasn't familiar with the color tools at all. Will have to look those up. Here's a few others that I've found handy: