-
Notifications
You must be signed in to change notification settings - Fork 12
Collaboration Workflows
Siddhartha Kasivajhula edited this page Dec 14, 2023
·
14 revisions
There are many things you could do to make collaboration with other developers more convenient. This page documents some options and conventions.
Generally speaking, we rebase away from main, and merge towards main. For instance, feature branches (especially big ones) are typically rebased onto main to get the latest changes on main prior to merging them. This ensures that:
- The feature branch will represent the proposed state of the main branch and any would-be issues would be noticed prior to the merge.
- It avoids gratuitous complexity in the commit history (three-way merges, etc.) by ensuring that merging only happens in one direction (i.e. towards main).
In your local repo,
$ git remote add <them> [email protected]:<their_username>/qi.git
... where "them" is any convenient alias you'd like to use to refer to your new friend, the other developer.
Now you can always:
$ git fetch <them>
to try out their latest changes. If you want to make local changes or contribute to their branch, you could use:
$ git checkout -b <them>-<branch_name> <them>/<branch_name>
Home | Developer's Guide | Calendar | Events | Projects | Meeting Notes