Created
October 16, 2013 16:47
-
-
Save alexeypegov/7011012 to your computer and use it in GitHub Desktop.
Quickly create Git remote branch. Place it somewhere in the PATH and call like this: "git rbr branch_name"
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/sh | |
if [ -n "$1" ]; then | |
git checkout -b $1 | |
git push --set-upstream origin $1 | |
else | |
echo "Usage: git rbr branch-name" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment