Skip to content

Instantly share code, notes, and snippets.

@cam8001
Last active August 29, 2015 14:07
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 cam8001/e9c9100e5937cc11d6f8 to your computer and use it in GitHub Desktop.
Save cam8001/e9c9100e5937cc11d6f8 to your computer and use it in GitHub Desktop.
Bookmarklet - Convert github issue to bash-safe git branch name
javascript:window.prompt('Branch name - copy to clipboard :)', 'issues/' + document.getElementsByClassName('gh-header-number')[0].innerHTML.replace(/#/, '') + '/' + document.getElementsByClassName('js-issue-title')[0].innerHTML.replace(/ /g, '-').toLowerCase());
@cam8001
Copy link
Author

cam8001 commented Oct 8, 2014

If you want to create a local branch based on a github issue, but don't want to fork, good news!

Click to show, drag to bookmark bar, happy days :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment