0

I have a remote git repo hosted in gitlab. It's got a few branches off of it already.

I am trying to pull down these branches to a local repo to work on them. For the life of me I cannot figure out how.

This seems like it should be easy but I cannot find an answer. Please let me know where I can clarify.

  • Does this answer your question? [Clone a repository from GitHub](https://stackoverflow.com/questions/53665389/clone-a-repository-from-github) – Joachim Sauer Apr 07 '21 at 21:28
  • Does this answer your question? [Make a local copy of a remote git repository](https://stackoverflow.com/questions/7130639/make-a-local-copy-of-a-remote-git-repository) – mkrieger1 Apr 07 '21 at 21:36

1 Answers1

1

one way is using

$ git clone https://github.com/YOUR-USERNAME/YOUR-REPOSITORY

it downloads all your source code and all of your branches. then you can use

$ git checkout <existing_branch>

in order to change your current branch. you can find out more information on cloning inside here

SeAlGhz
  • 75
  • 9