0 votes
in Git by

Is it reasonable to create an additional commit or modify an existing commit?

1 Answer

0 votes
by

Such types of entries among Git interview questions can be confusing. You need to be clear that the creation of an additional commit is favorable as compared to modifying an existing commit. Modifications can destroy the previously saved state in the commit. Amendments in the content of the commit can lead to probabilities for the elimination of crucial data. Excessive use of “git commit- amend” can lead to the growth of a small commit and accumulation of unwanted changes.

Related questions

0 votes
asked Oct 16, 2019 in Git by rajeshsharma
0 votes
asked Aug 24, 2023 in Git by JackTerrance
...