Why is it desirable to create an additional commit rather than amending an existing commit?
Answer Posted / 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 |
Post New Answer View All Answers