forked from wet-boew/GCWeb
-
Notifications
You must be signed in to change notification settings - Fork 1
GCWeb git workflow
delisma edited this page Sep 22, 2020
·
3 revisions
- Rather than everyone working off
wet-boew/gcweb
repo, every developer should work on their own server-side repo. - Typically used / seen in the open source community (like projects on GitHub).
- This avoids the situation where everyone is pushing code to the
wet-boew/gcweb
repo at the same time. Rather developers make changes in their own repo forked fromwet-boew/gcweb
and when ready, submit a merge request from their own repo towet-boew/gcweb
.
NOTES:
- Forked is nothing more than a server side git clone.
- Typically you’ll have two remotes with this workflow, one for your forked version of
wet-boew/gcweb
and one for the primarywet-boew/gcweb
repo.- By convention, yours will be named origin and the primary will be called upstream.
- Having an upstream means you can keep your copy of the repo up to date with the latest from the primary, while continuing to work on your changes.
- Original repository is created –
wet-boew/gcweb
. - Jenny Gen “forks” the
wet-boew/gcweb
, creating a new, personal / public copy on the server. - Git clone the newly forked repo to local – private work copy.
- Commit any changes and push to the forked repo, not the original repo.
- Initiate a pull request from the forked repo with the latest changes over to the original repository.
- Discussion about the branch / changes can also occur as part of this process.
-
wet-boew/gcweb
repo maintainer pulls branch to be integrated down to local, then merges it into local master branch. - Maintainer then pushes master up to main centralized repo.
- Keeps primary repo’s nice n’ clean.
- Limits those who have write access to the upstream repo.
- More work and slightly more complicated than other workflows.
Any time you plan to contribute to wet-boew/gcweb
.