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 |
What is a ‘conflict’ in git?
What is GIT stash drop?
What is ‘git status’ is used for?
What are the benefits of using version control system?
How to rebase master in git?
Explain what is commit message?
What are git repository hosting services you used?
What is git cherry-pick?
What is ‘head’ in git?
Describe the branching strategies you have used.
What is the common branching pattern in GIT?
What does commit object contain?