2012-10-10 12:51:59 +00:00
|
|
|
[color]
|
|
|
|
ui = auto
|
|
|
|
[color "diff"]
|
2012-11-27 14:10:41 +00:00
|
|
|
meta = blue
|
|
|
|
frag = white
|
2012-10-10 12:51:59 +00:00
|
|
|
old = red bold
|
2012-11-27 14:10:41 +00:00
|
|
|
new = green bold
|
2012-10-10 12:51:59 +00:00
|
|
|
[core]
|
|
|
|
editor = nano
|
|
|
|
# http://stackoverflow.com/questions/136178/git-diff-handling-long-lines
|
|
|
|
# If doesn't work, try: pager = less -+$LESS -FRX
|
|
|
|
pager = less -r
|
|
|
|
autocrlf = false
|
2012-11-09 08:33:26 +00:00
|
|
|
safecrlf = false
|
2012-10-10 12:51:59 +00:00
|
|
|
excludesfile = ~/.gitignore
|
|
|
|
attributesfile = ~/.gitattributes
|
|
|
|
[alias]
|
|
|
|
a = add
|
|
|
|
ua = reset HEAD
|
|
|
|
b = branch
|
|
|
|
c = commit
|
|
|
|
ca = commit -a
|
|
|
|
cam = commit -am
|
|
|
|
co = checkout
|
|
|
|
d = diff --color-words
|
|
|
|
s = status -sb
|
|
|
|
l = log --graph --pretty=format:'%C(magenta)%h%C(blue)%d%Creset %s %C(blue bold)- %an, %ar%Creset'
|
|
|
|
ll = log --stat --abbrev-commit
|
|
|
|
ignore = !([ ! -e .gitignore ] && touch .gitignore) | echo $2 >> .gitignore
|
|
|
|
this = !git init && git add . && git commit -m \"initial commit\"
|
|
|
|
amend = !git log -n 1 --pretty=tformat:%s%n%n%b | git commit -F - --amend
|
|
|
|
[push]
|
|
|
|
default = current
|
|
|
|
|
|
|
|
# URL shorthands
|
|
|
|
[url "git@github.com:"]
|
|
|
|
insteadOf = "gh:"
|
|
|
|
pushInsteadOf = "github:"
|
|
|
|
pushInsteadOf = "git://github.com/"
|
|
|
|
[url "git://github.com/"]
|
|
|
|
insteadOf = "github:"
|
|
|
|
[url "git@gist.github.com:"]
|
|
|
|
insteadOf = "gst:"
|
|
|
|
pushInsteadOf = "gist:"
|
|
|
|
pushInsteadOf = "git://gist.github.com/"
|
|
|
|
[url "git://gist.github.com/"]
|
|
|
|
insteadOf = "gist:"
|
|
|
|
|
|
|
|
# Include local settings
|
|
|
|
# Example:
|
|
|
|
# [user]
|
|
|
|
# name = Artem Sapegin
|
|
|
|
# email = artem@sapegin.ru
|
|
|
|
[include]
|
|
|
|
path = ~/.gitlocal
|
|
|
|
|
2012-11-09 08:33:26 +00:00
|
|
|
[user]
|
|
|
|
name = Artem Sapegin
|
|
|
|
email = artem@sapegin.ru
|