crackyourinterview.com


To improves our performance please Like Share Subscribe(Will boost us)

How can you revert a commit that is pushed and made public?
Question Posted on 08 May 2024Home >> Repository Questions >> Git Questions >> How can you revert a commit that is pushed and made public?

How can you revert a commit that is pushed and made public?
Well there are two answer to do this operation and i have given the synatx and description to do that. Below are the two option to revert a commit:-

(1)Fix or remove the bad file in a new commit and then push that to remote repository. And below is the most natural way to fix an error. And once you done with changes to the file you can commit it to remote repository for that will you use and below is command:-
git commit -m "commit message"

(2)Well here we will create a new commit which undoes all the changes wht we have made by a bad commit and to do that we will use the below command:-
git revert
0
0



.


Most Visited Questions:-

Deep Learning Questions Answers
Below are the different Deep Leaning Questions and answer a More...

Continuous Integration Questions Answers
Below are the 20 odd questions for CI or Continuous Integra More...

Derived relationships in Association Rule Mining are represented in the form of __________.
Derived relationships in Association Rule Mining are repres More...

What is Gulpjs and some multiple choice questions on Gulp
Gulpjs is an open source whihc helps in building Javascript More...

Microservices Architecture Questions Answers
Below are the different questions on Microservices Architec More...




Other Important Questions

Why Git is fast and which language is used in GIT?

What is syntax to fix a broken commit in GIT?

What is GitLive new features that will change the game?

What is Subgit and what is the use of this?

Difference between Git and SVN






@2014-2022 Crackyourinterview (All rights reserved)
Privacy Policy - Disclaimer - Sitemap