quaternum.net
Menu

2017-06-08

Onze règles pour utiliser Git

  1. Use feature branches, no direct commits on master.
  1. Test all commits, not only ones on master.
  2. Run all the tests on all commits (if your tests run longer than 5 minutes have them run in parallel).
  3. Perform code reviews before merges into master, not afterwards.
  4. Deployments are automatic, based on branches or tags.
  5. Tags are set by the user, not by CI.
  6. Releases are based on tags.
  7. Pushed commits are never rebased.
  8. Everyone starts from master, and targets master.
  9. Fix bugs in master first and release branches second.
  10. Commit messages reflect intent.

Sid Sijbrandij, The 11 Rules of GitLab Flow

Un workflow Git parmi d’autres, mais celui-ci a le mérite d’être clair et cohérent.