Skip to content

Instantly share code, notes, and snippets.

@guilhermesilveira
Created June 23, 2010 22:44
Show Gist options
  • Select an option

  • Save guilhermesilveira/450666 to your computer and use it in GitHub Desktop.

Select an option

Save guilhermesilveira/450666 to your computer and use it in GitHub Desktop.
echo Creating branch $1 for remote $2 $3
read
git co master
git remote add origin-$1 $2
git br $1
git co $1
git pull origin-$1 $3
echo If everything went fine, i will push into our master and over to git, go on, otherwise stop it
read
git co master
git merge $1
git push origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment