Skip to content

Instantly share code, notes, and snippets.

@drosenstark
Last active February 8, 2018 16:37
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 drosenstark/7e832ee0c37411e52afa0a0511fec73a to your computer and use it in GitHub Desktop.
Save drosenstark/7e832ee0c37411e52afa0a0511fec73a to your computer and use it in GitHub Desktop.
Creates a local branch and pushes it up
#!/bin/bash
git checkout -b $1 && git push --set-upstream origin $1
@drosenstark
Copy link
Author

If you put this in your path, you can call it with git rbranch XXX which will create branch XXX and a corresponding remote branch on your server.

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