Git shared workflow
This is the very basic idea behind a pull request based workflow.
- Pull from a prime remote repositiory. (never push to this repo)
- Commit your work locally and push to your remote fork
- Use github to create a pull request to the prime repo.
This summary is generated from this article Collaborative development with Github
- Fork the repository you want to work with into your own account (private repos stay private)
- clone your your fork: git clone {url or ssh link} {directoryname}
- Keep your master in sync with the source master (git remotes help with this)
- Make a new branch for your changes
- work work work
- When ready, rebase and squash to clean up.
- checkout master and merge in the latest changes from the source: merge {sourcename}/master
- Rebase your branch work on top of current master (to align the commit timelines).
- Make pull request from yoru branch to the source on github.
- checkout master and merge in the latest changes from the source: merge {sourcename}/master