If you are already tracking a remote repository in Git, you can clone all the branches with this simple command: git pull --all
If you aren’t tracking a remote repository yet…
- Run the following command in your terminal:
git clone git://example.com/exampleproject
- Navigate to the project’s directory using
cd
- Run
git pull --all
to pull down all the project’s branches
Happy coding!