Skip to content

Instantly share code, notes, and snippets.

@kugaevsky
Created May 17, 2017 12:48
Show Gist options
  • Save kugaevsky/67cdb11961bdbd0ec51892e71d2d7211 to your computer and use it in GitHub Desktop.
Save kugaevsky/67cdb11961bdbd0ec51892e71d2d7211 to your computer and use it in GitHub Desktop.
[alias]
co = checkout
ci = commit
cl = clean
st = status
br = branch
up = pull --rebase
pr = pull --rebase
last = log -1 HEAD
olog = log --oneline
unstage = reset HEAD --
undo = reset HEAD^
history = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
type = cat-file -t
dump = cat-file -p
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
pust = push staging staging:master
pupr = push production production:master
[user]
name = Nick Kugaevsky
email = nick@kugaevsky.ru
[mirror]
summary = true
[color]
diff = auto
status = auto
branch = auto
[color "branch"]
current = yellow bold
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
[merge]
summary = true
[push]
default = tracking
followTags = true
[format]
numbered = auto
cc = nick@kugaevsky.ru
[rerere]
enabled = true
[core]
# quotepath = false
# autocrlf = input
# safecrlf = true
# For windows use:
# autocrlf = true
editor = vim
[github]
user = kugaevsky
[core]
excludesfile = /Users/nick/.gitignore_global
[difftool "sourcetree"]
cmd = opendiff \"$LOCAL\" \"$REMOTE\"
path =
[mergetool "sourcetree"]
cmd = /Applications/SourceTree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\"
trustExitCode = true
[filter "lfs"]
clean = git-lfs clean %f
smudge = git-lfs smudge %f
required = true
[fetch]
prune = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment