1

I'm doing a calculator project. In that, I've to find the bad commit using the git bisect and remove that commit using git revert. The resultant has to be staged, commit and pushed to the remote repo.

Using git bisect, I found the bad commit.

Then typed, git bisect reset

Later, I used git revert commitSHA

Shows some message to resolve conflicts. Visited the file(newfile.py), and removed the statements which caused that. Then staged it with git add . Then, git commit and used the revert message as mentioned.

Used, git push

After I do all these things, it's still showing like it's not complete.

Since I'm a beginner, I would like to know whether I missed something in between or this is not the way. Help me out!

Shane Thomas
  • 15
  • 1
  • 5

1 Answers1

0

After you have found the bad commit run git bisect reset

After that run

git revert #SHA

You should not see any conflicts.

:wq

then

git push
Ognjen Mišić
  • 1,219
  • 17
  • 37