1.

What is best advisable step in cases of broken commit: Create an additional commit OR amend an existing commit?

Answer»
  • It is always advisable to CREATE an additional commit rather than amending the existing commit due to the following reasons:
    - Doing the AMEND operation destroys the previously saved state of that commit. If only the commit message gets changes or DESTROYED, it's acceptable but there might be CASES when the contents of the commits get amended. This results in the loss of important INFORMATION associated with the commit.
    - Over usage of git commit --amend can have severe repercussions as the small commit amend can continue to grow and gather unrelated changes over time.


Discussion

No Comment Found