Created
June 4, 2012 21:40
-
-
Save h3h/2870990 to your computer and use it in GitHub Desktop.
My .gitconfig
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 = Brad Fults | |
email = bfults@gmail.com | |
[alias] | |
amend = commit --amend | |
co = checkout | |
st = status | |
cp = cherry-pick | |
# edit config (global, local) | |
ec = !vim ~/.gitconfig | |
ecl = !vim .git/config | |
# log graph | |
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative | |
# rebase interactive (local commits on master) | |
rbi = rebase -i origin/master | |
# edit conflicted files | |
ecf = !$EDITOR $(git ls-conflicted-files) | |
ls-conflicted-files = ls-files --unmerged | |
human = name-rev --name-only --refs=refs/heads/* | |
[color] | |
status = auto | |
[color "status"] | |
added = green | |
changed = cyan | |
untracked = yellow | |
[branch] | |
autosetupmerge = true | |
autosetuprebase = always | |
[clean] | |
requireForce = false | |
[push] | |
default = tracking | |
[github] | |
user = h3h | |
token = xxx | |
[help] | |
autocorrect = 1 | |
[rerere] | |
enabled = 1 | |
[core] | |
autocrlf = input |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment