Working with Git #3
ctapobep
started this conversation in
Conventions & Approaches
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.
-
Commit message conventions
We're using conventions similar to what they have in Linux. Example:
Linear history
We never use merge commits in
master
, the history must always stay linear. Most of the time we create lot's of temporary commits, then in the end we want to squash them into 1 (or multiple) and push tomaster
. The easiest way of doing this:Trunk-based development
As much as possible we use trunk-based development. Meaning we try not to work in branches for a long time. Other branches are created only to safely stash the changes for short periods of time (don't trust your local hard drive to last ;)).
Here are some rules:
master
.If you use Branching by Abstraction and Feature Toggles, it's likely that you'll often have safe commits. So if you implement a new feature which requires changes in the existing code, you could copy (or abstract away) the code temporarily and push it to
master
; and then when QA is ready to take your feature - switch everything to the copied code and remove the outdated pieces.Beta Was this translation helpful? Give feedback.
All reactions