Skip to content

Instantly share code, notes, and snippets.

@jbryson3
Last active December 21, 2015 16:57
Show Gist options
  • Save jbryson3/48bd2def252888d2621b to your computer and use it in GitHub Desktop.
Save jbryson3/48bd2def252888d2621b to your computer and use it in GitHub Desktop.
GIT - Creating release branches without switching context
#!/bin/bash
# Create release branch of current directory repository off of develop without changing your working directory
# ./create-release-branch.sh new-release
git branch release/$1 origin/develop
git push -u origin release/$1
git branch -d release/$1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment