Skip to content

Instantly share code, notes, and snippets.

@mwinckler
Last active February 18, 2017 18:35
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 mwinckler/962ec4adce51e2cbf1ac72f7cf8dded6 to your computer and use it in GitHub Desktop.
Save mwinckler/962ec4adce51e2cbf1ac72f7cf8dded6 to your computer and use it in GitHub Desktop.
[alias]
alias = config --get-regexp ^alias
editconfig = !sub ~/.gitconfig
lol = log --graph --decorate --pretty=oneline --abbrev-commit --all
mylog = log --graph --decorate --all --oneline
tlog = !TortoiseGitProc.exe /command:log &
ci = commit
s = status -s
lg = log --graph --decorate --all --oneline
dt = difftool -y --dir-diff
dirdiffbranch = !git dt $(git merge-base master HEAD) &
filelistbranch = !git diff --name-status $(git merge-base master HEAD)
rebasebranch = !git rebase -i $(git merge-base master HEAD)
incoming = "!git remote update -p; git log ..@{u}"
outgoing = log @{u}..
purge = clean -dxf
fetchpr = "!f() { git fetch origin refs/pull/$1/head:pr/$1; } ; f"
unstage = reset HEAD --
revert = checkout --
amend = commit --amend -C HEAD
x = !GitExtensions.exe &
xcommit = !GitExtensions commit &
syncmaster = fetch origin master:master
shove = push --force-with-lease
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment