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

What is ‘head’ in git?

1 Answers  


What is the difference between git vs svn

1 Answers  


What is subgit?

1 Answers  


What is GIT version control?

1 Answers  


What is the use of ‘git log’?

1 Answers  


What is a repository in GIT?

1 Answers  


What is a repository and how will you create it?

1 Answers  


What is the function of ‘git rm’?

1 Answers  


What is “Staging Area” or “Index” in GIT?

1 Answers  


How do you find a list of files that have changed in a particular commit?

1 Answers  


What is GIT stash drop?

1 Answers  


What is git fork?

1 Answers  


Categories