| 1. |
Why Is It Advisable To Create An Additional Commit Rather Than Amending An Existing Commit? |
|
Answer» There are couple of reason a) The amend operation will destroy the state that was previously saved in a commit. If it’s just the commit MESSAGE being changed then that’s not an issue. But if the contents are being amended then chances of eliminating something important remains more. B) Abusing “GIT commit- amend” can cause a small commit to grow and ACQUIRE unrelated CHANGES. There are couple of reason a) The amend operation will destroy the state that was previously saved in a commit. If it’s just the commit message being changed then that’s not an issue. But if the contents are being amended then chances of eliminating something important remains more. b) Abusing “git commit- amend” can cause a small commit to grow and acquire unrelated changes. |
|