Basic Git Hub skills required!

(TODO move to Engineer's Handbook)

If you have not heard of a pull request it is time for you to join over 27 million developers and learn this version control platform. There are lots of cool articles to get you up to speed: Github Introduction Forking a Repository in Github, Synicing a Fork in Github

We use the Fork and Pull model. Pro Tip: Keep pull requests small and focused on the issue you are solving. (Large changes in code are much harder to accept)

Basics:

  • Fork the repository

  • All changes you make must be submitted for review via a pull request to the appropriate branch.

  • Ask for clarification if needed (via Git pull requests or Slack).

  • Report problems.

Stay up to date with Git!

To avoid merge conflicts help us out by keeping your fork up to date. Rebase your forked and local repositories from the Greenstand repository before you start coding and before a pull request.

  1. Switch to your local master branch.

git switch master
  1. Add the Greenstand repository as a remote and call it upstream.

git remote add upstream https://github.com/greenstand/repo.git
  1. Fetch all branches of the remote repository.

git fetch upstream
  1. Rebase your local master with the upstream master branch.

git rebase upstream/master
  1. Push updates to your forked master.

git push origin master
  1. Switch to your branch then merge the local master to your branch.

git switch yourbranch
git merge master
  1. Resolve merge conflicts and complete merge.

  2. Resume coding or create a pull request.

Last updated

©2023 GREENSTAND