This repository was archived by the owner on Jul 20, 2026. It is now read-only.
Source control #22
TheRefraction
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Source control
Branches
Each branch has a given purpose as shown below:
master: This is the branch for the main production. This branch is protected.dev: This is the branch for the development of a given version. This branch is also protected and shall be pulled tomasterat the end of a development cycle. Any new feature will be implemented in another branch (which is created fromdev), then the latter is pushed and reviewed todev.docs: This is the branch for documentation in Markdown and for the report (LaTeX). This branch is ofmasterand is then pushed to the latter.Pull requests
By default, any contributor cannot push to the following branches:
masterand ````dev```. Thus, a new branch should be created, then pulled and reviewed by others. If changes consist of a single commit (like a hotfix), then it can directly be pulled and reviewed without creating a new branch.The one that opened the pull-request must be the one that closes it. At least one must review and choose whether to accept or decline.
Branch Merge Protection
The following merges are allowed, others are automatically declined:
master<dev,master<docsdocs< any (except any main branch)dev< any (except any main branch)How to name a new branch
It depends on what you are actually going to be working on. Let name be the main focus of your branch. Thus we can have the following convention:
feature-namefor a new featuremigration-namefor a new set of migrationsconfig-nameif config files are being modifiedhotfix-namefor a urgent bug fixfix-namefor bug fixesrefactor-namefor code restructuring without changing behaviorwip-namefor a work-in-progress feature (should be temporary)All reactions