Last active
October 5, 2018 06:38
-
-
Save paesku/4668d8d6f1bda9e73f1a to your computer and use it in GitHub Desktop.
My gitconfig file
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 = "name" | |
email = "mail" | |
[core] | |
excludesfile = /path/to/.gitignore_global | |
editor = /usr/bin/vim | |
[difftool "sourcetree"] | |
cmd = opendiff "$LOCAL" "$REMOTE" | |
trustExitCode = true | |
[filter "media"] | |
clean = git-media-clean %f | |
smudge = git-media-smudge %f | |
[push] | |
default = simple | |
[alias] | |
############# | |
b = branch | |
ba = branch -a | |
bd = branch -d | |
br = branch -r | |
############# | |
aa = add --all | |
############# | |
rb = rebase | |
############# | |
co = checkout | |
############# | |
l = log --oneline | |
lp = log --pretty=oneline | |
lg = log --oneline --graph --decorate | |
lga = log --oneline --graph --decorate --all | |
############# | |
c = commit | |
ca = commit -a | |
cm = commit -m | |
cam = commit -am | |
############# | |
ls = ls-files | |
lsf = "!git ls-files | grep -i" | |
############# | |
ps = push | |
############# | |
pl = pull | |
############# | |
s = status | |
sb = status -s -b | |
############# | |
rh = reset --hard | |
rhh = reset --hard HEAD | |
[color] | |
ui = true | |
[color "branch"] | |
current = yellow bold | |
local = green bold | |
remote = cyan bold | |
[color "diff"] | |
meta = yellow reverse | |
frag = magenta | |
old = red | |
new = green | |
whitespace = red reverse | |
[color "status"] | |
added = green | |
changed = yellow black reverse | |
untracked = red | |
[mergetool "sourcetree"] | |
cmd = /Applications/SourceTree.app/Contents/Resources/opendiff-w.sh "$LOCAL" "$REMOTE" -ancestor "$BASE" -merge "$MERGED" | |
trustExitCode = true | |
[commit] | |
template = ~/.gitmessage |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment