Skip to content

Instantly share code, notes, and snippets.

@geff21st
Created May 27, 2017 08:23
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 geff21st/eb3057579507bdb0784984f7af04d47b to your computer and use it in GitHub Desktop.
Save geff21st/eb3057579507bdb0784984f7af04d47b to your computer and use it in GitHub Desktop.
[alias]
pll = !git pull origin `git rev-parse --abbrev-ref HEAD`
psh = !git pll && git push origin `git rev-parse --abbrev-ref HEAD`
upd = !git add . && git stash && git pull origin `git rev-parse --abbrev-ref HEAD` && git stash pop && git stash clear && git status
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment