Skip to content

Instantly share code, notes, and snippets.

@ralph
Last active March 10, 2017 09:22
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 ralph/cc26e8b787924f7614a773aa36f71fdd to your computer and use it in GitHub Desktop.
Save ralph/cc26e8b787924f7614a773aa36f71fdd to your computer and use it in GitHub Desktop.
[alias]
# less typing, more winning:
aa = add --all --intent-to-add
ap = add --patch
br = branch
ci = commit
co = checkout
cp = cherry-pick
df = diff
l = log -1
rb = rebase
st = status
# looking at stuff:
changelog = log --pretty=oneline
lg = log --color --graph --pretty=format:'%Cred%h%Creset %G? -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --
# working with local branches:
commend = commit --amend --no-edit
# working with remote repos:
please = push --force-with-lease
pushup = !git push --set-upstream origin $(git symbolic-ref --short HEAD)
sync = !git pull --rebase && git push
# stash on stereoids
stsh = stash --keep-index
staash = stash --include-untracked
staaash = stash --all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment