Skip to content

git accessing remote branch

Jintram edited this page Jul 27, 2011 · 3 revisions

This small howto explains how to download a remote repository, and then access a branch that is not the standard one. For more information on how to correctly download a remote repository, see git workflow.

  1. Use git clone [email protected]/myrepository/repository.git folder_name to download the repository to your pc.
  2. git branch -a shows all branches.
  3. git checkout -b branchname remotes/origin/branchname let's you create a local tracking branch.

See also this stackoverflow article.

Clone this wiki locally