#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
cdto desired parent directory on local machine- run
git clone [email protected]:user/repo.git cdinto cloned directory.- Add remote upstream by running
git remote add upstream [email protected]:user/repo.gitwith[email protected]:user/repo.gitbeing 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 - And then pulling the remote upstream branch:
git pull upstream branchname
Now push/pull from your fork and submit a pull request from GitHub.