Skip to content

Instantly share code, notes, and snippets.

@rndD
Last active February 1, 2016 19:28
Show Gist options
  • Save rndD/2a299c6c7ec84cc21744 to your computer and use it in GitHub Desktop.
Save rndD/2a299c6c7ec84cc21744 to your computer and use it in GitHub Desktop.
tmp save my gitconfig
[core]
autocrlf = true
mergeoptions = --no-ff
[user]
email = [email protected]
name = Alex Kalmakov
[help]
autocorrect = 1
[alias]
# Shortcuts
st = status -sb
co = checkout
cob = checkout -b
cp = cherry-pick
ci = commit
up = pull
di = diff
br = branch
tags = tag -l
branches = branch -a
remotes = remote -v
save = !git add -A && git commit -m "SAVEPOINT"
wip = !git add -u && git commit -m "WIP"
undo = reset HEAD~1 --soft
# Pretty log for current branch
lol = log --graph --decorate --pretty=oneline --abbrev-commit
# Pretty log for all branches
hist = log --pretty=format:'%C(yellow)%h%C(reset) %ad | %C(75)%s%C(reset) %C(yellow)%d%C(reset) [%an]' --graph --date=short --branches --all
# Get hash of latest commit
hash = show -s --format=%H
[color]
ui = auto
interactive = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow
frag = magenta
old = red
new = green
[color "status"]
added = yellow
changed = green
untracked = cyan
[push]
default = simple
[rebase]
autosquash = true
[url "[email protected]:"]
pushInsteadOf = "gh:"
pushInsteadOf = "git://github.com/"
[url "git://github.com/"]
insteadOf = "gh:"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment