Skip to content

Instantly share code, notes, and snippets.

@vmalyi
Last active January 18, 2017 10:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vmalyi/696dcdf3d5face8cd2e6f2ca555b8944 to your computer and use it in GitHub Desktop.
Save vmalyi/696dcdf3d5face8cd2e6f2ca555b8944 to your computer and use it in GitHub Desktop.
[color]
ui = auto
[core]
excludesfile = /Users/malyi/.gitignore_global
autocrlf = input
[user]
name = Viktor Malyi
email = v.stratus@gmail.com
[alias]
stash-unapply = !git stash show -p | git apply -R
t = log --pretty=format:'%C(yellow)%h %Cred%ad %Cblue%an%Cgreen%d %Creset%s' --graph --decorate --date=relative --all
unstage = reset HEAD --
subs = !git submodule update --init --recursive && git submodule foreach git fetch
subc = !git submodule update --init && git submodule foreach git clean -ffd
upd = !git pull --recurse-submodules && git submodule update --recursive
pp = !git pull && git push
gerrit-commit = push origin HEAD:refs/for/master
draft-commit = push origin HEAD:refs/drafts/master
camend = commit --amend
changes = show --name-only
cmr = !git checkout -- . && git checkout master && git reset --hard HEAD^
crps = !git checkout -- . && git checkout master && git reset --hard HEAD^ && git pull --rebase && git subs
cm = !git checkout -- . && git checkout master
cho = checkout -- .
pase = pull --rebase
ps = !git pull --rebase && git subs
s = status
b = branch
[credential]
helper = osxkeychain
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment