Skip to content

Instantly share code, notes, and snippets.

@noties
Created December 8, 2015 10:00
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 noties/ec7c61b3eb76f502e0f0 to your computer and use it in GitHub Desktop.
Save noties/ec7c61b3eb76f502e0f0 to your computer and use it in GitHub Desktop.
[alias]
erm = "!git branch -r --merged | grep -v master | grep -v develop | sed 's/origin\\///' | xargs -n 1"
elm = "!git branch --merged | grep -v master | grep -v develop | sed 's/origin\\///' | xargs -n 1"
pt = "!git push origin --tags"
cb = "!git rev-parse --abbrev-ref HEAD"
pcb = "!git rev-parse --abbrev-ref HEAD | xargs -n 1 git push origin -u"
ac = "!git add . && git commit -m"
s = "!git status"
nb = "!git checkout -b"
cpc = "!f() { cb=$(git cb); git checkout $1 && git pull && git checkout $(echo $cb); }; f"
rpt = "!f() { git log --graph --oneline --decorate --after="$1"; }; f"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment