Loading

Paste #pfy8hd19r

  1. [alias]
  2.     rb = "!f() { git fetch upstream && git rebase upstream/master; }; f"
  3.     pr = "!f() { git fetch -fu ${2:-$(git remote | grep ^upstream || echo origin)} refs/pull/$1/head:pr/$1 && git checkout pr/$1; }; f"
  4.     pr-clean = "!git for-each-ref refs/heads/pr/* --format='%(refname)' | while read ref ; do branch=${ref#refs/heads/} ; git branch -D $branch ; done"

Comments