Forking Repository
...
The advantage of the forked repository is that contributions can be integrated without needing everybody to push to a single central repository. Developers push to their git repositories, and only the administrator of the original repository can merge the forked repositories. The administrator accepts developers' commits without giving them written access to the official repository.
Note: The options below are suggestions on how formilators partners can fork CHEFS Repository and manage their forked repository.
First Option:
...
Create a fork of Chef's repository into the Ministry's Github.Git branching and pull request workflow
Clone forked repo.
Create a feature|bug fix branch.
git checkout -b feature/<ticket id>-<ticket-title-short>
Push local changes to remote feature|bug branch.
git add
git commit -m "your commit message here"
git push
When ready, create PR to merge changes from the feature|bug branch to the master of the forked repo.
Create PR from the Forked branch to the main Chef Repository master branch.
...
Create a fork of Chef's repository into the individual developer's Github.
Create a feature|bug fix branch.
git checkout -b feature/<ticket id>-<ticket-title-short>
Before pushing local changes, update local changes with the remote features branch.
git pull origin features
Push or publish local changes to feature|bug fix branch.
git add .
git commit -m "your commit message here"
git push
When ready, create PR to merge changes from the feature|bug branch to the CHEFS Repository features branch.
Before creating PR from the feature branch, update it with the master branch.
git fetch origin features
git switch features
git pull origin
Create PR from the feature branch to the main Chef Repository master branch.
...
Create a fork of Chef's repository into the individual developer's Github.
Create a feature|bug fix branch.
git checkout -b feature/<ticket id>-<ticket-title-short>
Before pushing/publishing the feature|bug branch to remote, update it with the master branch.
git pull origin
Push or publish local changes to feature|bug fix branch.
git add .
git commit -m "your commit message here"
git push
Create PR from the feature branch to the main Chef Repository master branch.
...