Skip to content

Instantly share code, notes, and snippets.

@hail2u
Created June 20, 2014 07:47
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hail2u/3736a2cf5fdd0d0ca901 to your computer and use it in GitHub Desktop.
Save hail2u/3736a2cf5fdd0d0ca901 to your computer and use it in GitHub Desktop.
Back to master, create wip branch, commit empty, push and then open GitHub repostiory page.
#!/bin/sh
# Dependencies
# gh-open: https://github.com/typester/gh-open
BRANCH=$1
git checkout master &&
git checkout -b $BRANCH &&
git commit --allow-empty -m "WIP $BRANCH" &&
git push origin $BRANCH &&
gh-open .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment