Posted By

wdso on 06/24/09


Tagged

fork git github branch


Versions (?)


Advertising

Submit Site


Who likes this?

1 person has marked this snippet as a favorite

wdso


Switch to a remote github branch or fork


Published in: Bash 



Website Promotion
DIRECTORY
is a crucial factor for all websites that need to gain better organic search engine rankings and increase website traffic.
Submitting your website as part of your Web Promotion strategy to our SEO friendly and high traffic Business Directory for review is an excellent way to gain a valuable backlink and increase your websites visibility online.

Submit Site


Expand | Embed | Plain Text
  1. # add reference to remote branch 'foo'
  2. git remote add foo git://github.com/foo/project.git
  3.  
  4. # add branch based on reference (-b) and change to it (checkout)
  5. git checkout -b foo/master
  6.  
  7. # confirm that foo/master is active
  8. git branch
  9.  
  10. # pull branch
  11. git pull foo master

Report this snippet 

You need to login to post a comment.

Download royalty free graphics