0 votes
in Git by (23.1k points)
Why is it desirable to create an additional commit rather than amending an existing commit?

1 Answer

0 votes
by (13.0k points)
There are a couple of reasons for this –

The amend operation destroys the state that was previously saved in a commit. If there is just the commit message being changed then that’s not a problem.  But if the contents are being amended then chances of eliminating something important remains more.

Abusing “git commit- amend” can result in the growth of a small commit and acquire unrelated changes.
Click here to read more about GIT
Click here to read more about Insurance

Related questions

0 votes
0 votes
asked Jan 9, 2021 in Git by SakshiSharma (30.6k points)
0 votes
asked Oct 16, 2019 in Git by rajeshsharma (23.1k points)
...