Skip to content

Instantly share code, notes, and snippets.

@angeldm
Created May 31, 2011 14:18
Show Gist options
  • Save angeldm/1000576 to your computer and use it in GitHub Desktop.
Save angeldm/1000576 to your computer and use it in GitHub Desktop.
Howto create a remote branch.
cd
cd Repositories/
ls
mkdir GoCode
cd GoCode/
git init
touch README
git add README
git commit -m 'first commit'
git remote add origin git@github.com:angeldm/GoCode.git
git push -u origin master
git branch test
git checkout test
git remote add test git@github.com:angeldm/GoCode.git
git push origin test
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment