Do not store any data in GitLab
GitLab is intended for code only. Users must not use GitLab to store any data or results.
For example, before moving a Databricks notebook into GitLab, all results should be cleared using the Clear Results command before transferring.
Frequency of commits
Working practices within teams vary, as do the frequency with which users will want to commit their code to GitLab. As a guideline, users are encouraged to commit code in GitLab at least once a week.
Working together on code
When more than one user is working on the same code, users are advised to create their own branch to work within.
Even where 2 users are ‘pair-programming’ a particular section of code, it is recommended they do so within separate branches. These branches should first be merged into a single branch, and subsequently merged into Master. Doing so will provide greater transparency of any conflicts or errors.
To keep your branch up to date with Master, you can use GitLab’s Merge Request functionality. Rather than having Master as the target branch, simply set it as the source branch, and set your user branch as the target branch. Doing this should achieve the same result as performing a ‘pull’ from Master and should help avoid merge conflicts.
Handling merge conflicts
For detailed guidance, please refer to the merge conflicts page of GitLab Docs.
Various resolution approaches can apply, depending on the details of the conflict. Less experienced users are therefore encouraged to consult with expert users for direction.
Reverting to a previous version of code
For detailed guidance, please refer to the reverting a merge request page of GitLab Docs.