#Github Collaboration process
Collaborating on GitHub can be confusing, especially because cloning a fork on your local machine doesn't clone all of its branches. Here are some instructions that make this process easier.
- Fork project on GitHub
cd
to desired parent directory on local machine- run
git clone git@github.com:user/repo.git
cd
into cloned directory.- Add remote upstream by running
git remote add upstream git@github.com:user/repo.git
withgit@github.com:user/repo.git
being your fork (that was just cloned). - Now, pull branches from your fork one at a time (ew... gross...) by first creating a new branch:
git checkout -b branchname