Enforcing linear history #39
Replies: 2 comments
-
We discussed this in a tech catch up in February and clarified that we should be:
This is in keeping with the GDS Way's 'Working with Git' recommendations, which say this about handling history in your branch before merging:
and say this about merging changes into
|
Beta Was this translation helpful? Give feedback.
-
Closing as already discussed and decided! |
Beta Was this translation helpful? Give feedback.
-
Should we turn on enforcing linear history in Github?
This would mean that we could only use the 'Squash and Merge' or 'Rebase and merge' pull request merge strategies. The advantage of this is that it can be easier to revert changes done this way than it is to revert changes done via merge commit.
[This discussion originally contained some information from the GDS Way which I thought backed up this proposal, it later transpired that I had misinterpreted this]
I personally find that linear history makes it easier to see at a glance what changes have been made, and it's easier to use tools like
git bisect
.3 votes ·
Beta Was this translation helpful? Give feedback.
All reactions