Skip to content

Instantly share code, notes, and snippets.

@dzmitry-varabei
Last active September 2, 2018 12:03
Show Gist options
  • Save dzmitry-varabei/233f7242e3504937e538 to your computer and use it in GitHub Desktop.
Save dzmitry-varabei/233f7242e3504937e538 to your computer and use it in GitHub Desktop.
[user]
name = Dzmitry Varabei
email = dzmitry.varabei@gmail.com
[credential]
[core]
autocrlf = true
editor = 'C:\\Program Files\\Sublime Text 3\\sublime_text.exe'
[color]
ui = true
[push]
default = simple
[pull]
rebase = true
[rerere]
enable = true
[alias]
s = status -s
lg = log --oneline --decorate --all --graph
co = checkout
cob = checkout -b
ec = config --global -e
cm = !git add -A && git commit -m
up = !git pull --rebase --prune $@ && git submodule update --init --recursive
save = !git add -A && git commit -m 'SAVEPOINT'
wip = commit -am "WIP"
undo = reset HEAD~1 --mixed
amend = commit -a --amend
wipe = !git add -A && git commit -qm 'WIPE SAVEPOINT' && git reset HEAD~1 --hard
bclean = "!f() { git branch --merged ${1-master} | grep -v " ${1-master}$" | xargs -r git branch -d; }; f"
bdone = "!f() { git checkout ${1-master} && git up && git bclean ${1-master}; }; f"
cat = cat-file -p
gethash = hash-object
sh = show
trash = fsck --unreachable HEAD
cp = cherry-pick
rf = reflog
[merge]
tool = p4merge
[mergetool "p4merge"]
path = C:/Program Files/Perforce/p4merge.exe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment