Why is it advisable to create an additional commit rather than amending an existing commit?
Answer / Avinash Kumar Gupta
It's advisable to create an additional commit rather than amending an existing commit when the changes are significant or unrelated to the original commit. Amending a commit can make the commit history harder to understand and can lead to confusion. Creating a new commit allows for clearer and more organized history.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the difference between GIT and SVN?
What is GIT version control?
What is “Staging Area” or “Index” in GIT?
What is a distributed vcs?
Explain the gitflow workflow?
What is the function of ‘GIT PUSH’ in GIT?
Explain the uses of git commands?
Name some git commands and also explain their functions?
How do you find a list of files that have changed in a particular commit?
How do you configure a git repository to run code sanity checking tools right before making commits, and preventing them if the test fails?
What is git cherry-pick?
What is a git commit and what does the commit object contain?