|
|
|
|
|
by gingerlime
4017 days ago
|
|
slightly OT, but I wonder if anyone has an answer for this. We use feature branches and rebase before merging to master (mostly for the reason stated above - keep things clean and treating the branch as a single logical unit, not caring about higher-resolution history within the branch). However, some times, especially since we typically merge on Github from a PR, it's easy to forget to rebase, or notice that there are more commits. So our history is mostly clean, but occasionally contain some "messy" commits. I know we can reset master, but it feels a bit too risky compared to living with a bit of noise when mistakes happen. Anyone knows of some way to prevent / alert / notify or otherwise help us avoid this rather common mistake before it happens? |
|
This also has the benefit of complaining if someone else has force pushed (changed history / removed commits) to upstream/master.
Catch it early.
https://leanpub.com/sanegit (I consult/train on this in SF/Bay area.)