+1 vote
in Bitbucket by
Why should you create an additional commit rather than amending an existing commit?

1 Answer

0 votes
by
There are two main reasons why creating an additional commit is preferable. Firstly, when you use the amend commit option, it could destroy the state previously saved in the commit. If you are changing just the commit message, then it will not pose an issue.

However, if you are editing the contents, the chances of eliminating something important are high. Secondly, using this command can lead to a small commit to grow and acquire unrelated changes, leading to conflicts.

Related questions

0 votes
asked Oct 16, 2019 in Git by rajeshsharma
0 votes
asked Sep 17, 2021 in Interstellar Git by SakshiSharma
...