- Decide which team member will have the
master
repository for your project, and will be the team lead. - That person's fork of this repository will be the one that everyone else in the team opens PRs on. Your PM will get you set up with this and explain any questions you may have.
- The team lead will merge the PRs into the their repo.
Your work will be on origin
and the team's collaboration happens on upstream
.
git stash
git pull upstream
git stash apply
- Check your files for any merges that needs to be done.
git add .
git commit -m "your commit message"
git push origin HEAD
- Open a PR on "team lead" repo.
Once the lead merges the PR, the rest of the team can now pull your changes into their repos.
git stash
git pull upstream
git stash apply
If you happen to work in some of the same files as a teammate, you will probably have conflicts. Use the VS Code UI to navigate these and resolve them. If you get into weird state and start to panic, see someone, say something.