3 ms·
Say we work together. Why would you want to see my 5 solutions to a problem in `master`, of which 4 actually never really ran in production? I do commit often,
by jeff_vader 9y ago
Say we work together. Why would you want to see my 5 solutions to a problem in `master`, of which 4 actually never really ran in production? I do commit often, things that I try and later throw away are in the history. Once rebased and squashed, only final solution is in `master` history.
- branja 9y agoThis is much easier when I actually need to trawl through history to find things.
- chii 9y ago> 4 actually never really ran in production? but the history showed that it was tried (and perhaps the commit message can have a short note on why it wasn't selected). without the git history, you'd have to rely on human memory to know this. Or a separately maintained documentation (which, lets face it, is never going to get updated).
- Tade0 9y agoOr store it in another branch - that's the approach we had been using in one company I worked at.
- radiospiel 9y agoAh, yes, this was implied :) only working code (as checked via CI) is allowed to show up in master and other long living branches.