Skip to content

Instantly share code, notes, and snippets.

@technolize
Created July 6, 2014 18:51
Show Gist options
  • Select an option

  • Save technolize/b86731d1f4dcc4da74ef to your computer and use it in GitHub Desktop.

Select an option

Save technolize/b86731d1f4dcc4da74ef to your computer and use it in GitHub Desktop.
#!/bin/sh
set -u
echo "Branch name:"
read BRANCH_NAME
git checkout -b "$BRANCH_NAME"
git commit --allow-empty -m "create wip"
echo "PR Title:"
read PR_TITLE
gh pull-request -m "[WIP] $PR_TITLE" -b master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment