#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 [email protected]:user/repo.git
cd
into cloned directory.- Add remote upstream by running
git remote add upstream [email protected]:user/repo.git
with[email protected]: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