/ Published in: Bash
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
# add reference to remote branch 'foo' git remote add foo git://github.com/foo/project.git # add branch based on reference (-b) and change to it (checkout) git checkout -b foo/master # confirm that foo/master is active git branch # pull branch git pull foo master