Last active
February 8, 2018 16:37
-
-
Save drosenstark/7e832ee0c37411e52afa0a0511fec73a to your computer and use it in GitHub Desktop.
Creates a local branch and pushes it up
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
git checkout -b $1 && git push --set-upstream origin $1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.