Skip to content

Instantly share code, notes, and snippets.

@jeffbcross
Created June 11, 2015 20:57
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 jeffbcross/ec831f86485c9e724a54 to your computer and use it in GitHub Desktop.
Save jeffbcross/ec831f86485c9e724a54 to your computer and use it in GitHub Desktop.
freshbranch
#Create a new git branch based on latest upstream/master
function freshbranch () {
git fetch upstream
git checkout -b $1 upstream/master
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment