Why is it desirable to create an additional commit rather than amending an existing commit?
Answer / Asheesh Dhariwal
Creating a new commit instead of amending an existing one has several advantages. First, it preserves the original commit's information and context, making it easier for others to understand the changes. Second, if you make a mistake in your amendment or want to revert part of the changes, having a separate commit allows you to do so without affecting the rest of the history. Lastly, some tools may not support amending commits or may have issues when dealing with them.
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain the advantages of forking workflow?
What is the difference between GIT and SVN?
What is git bisect? How can you use it to determine the source of a (regression) bug?
What is GIT version control?
What is git bisect?
How to squash or fixup commits?
What is the function of ‘git stash apply’?
What is the difference between rebasing and merge in git?
Name some git commands and also explain their functions?
How git instaweb is used?
Why is it advisable to create an additional commit rather than amending an existing commit?
What is ‘git add’ is used for?