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...


Explain the difference between reverting and resetting.



Explain the difference between reverting and resetting...

Answer / Sanjeev Mittal

Reverting in Git undoes specific changes by creating a new commit that cancels out the changes made by another commit. It leaves the commit history intact, which is useful for preserving information about what happened.nResetting, on the other hand, removes commits from the repository's history. This can be dangerous because it deletes data permanently. There are different ways to reset (soft, hard, mixed), but all of them affect the commit history.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Git Interview Questions

Mention some of the best graphical GIT client for LINUX?

1 Answers  


What is a repository in GIT?

1 Answers  


What is GIT stash?

1 Answers  


How to squash or fixup commits?

1 Answers  


What is the difference between git vs svn

1 Answers  


What is GIT stash drop?

1 Answers  


What is git bisect and what is its purpose?

1 Answers  


What is a commit message?

1 Answers  


How to create tag?

1 Answers  


What are git stash and git stash drop?

1 Answers  


What work is restored when the deleted branch is recovered?

1 Answers  


Why GIT better than Subversion?

1 Answers  


Categories