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