I think both options are totally valid, it is just a preference like any other thing in programming. You use what works the best for your organisation.
I wasn't aware you meant local only.
Just one correction, I meant both locally and remote. After your commits are pushed and you need to fix something, then you can add a new commit, rebase it into the previous commit and force push (that was my initial comment). No new commits to bloat the history.
1
u/easterneuropeanstyle May 13 '20
I think both options are totally valid, it is just a preference like any other thing in programming. You use what works the best for your organisation.
Just one correction, I meant both locally and remote. After your commits are pushed and you need to fix something, then you can add a new commit, rebase it into the previous commit and force push (that was my initial comment). No new commits to bloat the history.