Git workflow
Compare changes
- Nando Farchmin authored
+ 30
− 5
@@ -38,11 +38,39 @@ Different Websites to host a `git` repository:
@@ -38,11 +38,39 @@ Different Websites to host a `git` repository:
Especially if a project is developed/maintained by more then one person, it is useful to determine a develepment strategy (branching model) to keep the history clean and readible.
If the project is not tied to a single person, or if multiple people are responsible to maintain the project, it might be useful to create a <a href="https://docs.gitlab.com/ee/user/group/" target="_blank">GitLab Group</a>.
This way the project itself is not tied to a specific user account and additional projects may be linked under the same group as well.
To keep the Git history clean and understandable, it is best practice to follow a consistent commit style guide, as e.g. the one discussed in <a href="http://who-t.blogspot.com/2009/12/on-commit-messages.html" target="_blank">this blog post</a>.
As an overview on the common git commit message style, <a href="https://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html" target="_blank">this cheat sheet</a> might help a lot.
@@ -53,10 +81,7 @@ As an overview on the common git commit message style, <a href="https://tbaggery
@@ -53,10 +81,7 @@ As an overview on the common git commit message style, <a href="https://tbaggery
Another important thing when developing code with multiple developers, maintainers and/or users is to choose (and specify) a branching model.
This way everyone working with the code, either through usage or contribution, knows how to obtain a stable version of the software, checkout the latest development stages or add features in a reproducable way.
For examples, see either the <a href="https://docs.github.com/en/get-started/quickstart/github-flow" target="_blank">GitHub flow</a> model or the <a href="https://gitlab1.ptb.de/pythia/pythia/-/blob/development/DEVELOPERS.md#git-workflow" target="_blank">branching model of PyThia</a>.
To keep only the relevant information in your repository, you should specify which files should not be tracked by `Git`.