2

Yesterday we had discussion on with developers about continuous deployment. When I asked one of the senior developers why they can't uncommit what commits you made to integration branch and which led to integration test failures. He said it's against the basic philosophy of git to uncommit... I don't know how git works...but seriously you can't use previous version of code or can't uncommit??

Comments
  • 2
    You can always revert a commit, although it doesn't roll the history back, it adds a new commit which points to the old commit hash.
  • 0
    @bojo that i know.. how does it is against philosophy of git?
  • 1
    I don't think it is 😋

    Sounds like a misunderstanding on one of your sides.
  • 3
    @bojo you can actually remove commits with reset or rebase.
  • 3
    @shellbug Right, something you'd never do on a CI/CD branch.
  • 3
    @bojo I didn't say you should do it, only that it's possible. 😉
Add Comment