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

What is a ‘conflict’ in git?

1 Answers  


What is GIT stash drop?

1 Answers  


What is ‘git status’ is used for?

1 Answers  


What are the benefits of using version control system?

1 Answers  


How to rebase master in git?

1 Answers  


Explain what is commit message?

1 Answers  


What are git repository hosting services you used?

1 Answers  


What is git cherry-pick?

1 Answers  


What is ‘head’ in git?

1 Answers  


Describe the branching strategies you have used.

1 Answers  


What is the common branching pattern in GIT?

1 Answers  


What does commit object contain?

1 Answers  


Categories