Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Why is it desirable to create an additional commit rather than amending an existing commit?



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

Post New Answer

More Git Interview Questions

Explain the advantages of forking workflow?

1 Answers  


What is the difference between GIT and SVN?

1 Answers  


What is git bisect? How can you use it to determine the source of a (regression) bug?

1 Answers  


What is GIT version control?

1 Answers  


What is git bisect?

1 Answers  


How to squash or fixup commits?

1 Answers  


What is the function of ‘git stash apply’?

1 Answers  


What is the difference between rebasing and merge in git?

1 Answers  


Name some git commands and also explain their functions?

1 Answers  


How git instaweb is used?

1 Answers  


Why is it advisable to create an additional commit rather than amending an existing commit?

1 Answers  


What is ‘git add’ is used for?

1 Answers  


Categories