Source control | How to revert?

Hello,

I’m new to Cursor. So far I love it.

Today I found a bug and wanted to revert to an earlier commit trough source control. But I can’t find a way to do that! I clicked almost every button without any possibility to discard all my changes and to go back to that earlier state.

Is my assumption false, that this should work?

I open the source control panel, then in the source control graph, I found the commit to revert and it opens the difference view. But how can I “apply” those? Is there any way?

I used Github Desktop and Visual Code before - it worked like a charm…

Cursor doesn’t have a dedicated “Revert” button in its source control graph that I’ve seen. Work-around, depending on what you want to do…

Reset to a commit (Discards changes entirely)
git reset --hard <commit-id>

This will reset your branch to the specified commit, discarding all uncommitted changes.

OR

Checkout a specific commit in detached mode (Temporary state without affecting history)

git checkout <commit-id>

You’ll be in “detached HEAD” mode. You can explore or save this state by creating a new branch if needed.

OR

Revert a commit (Creates a new commit that undoes the changes from a specific commit)

git revert <commit-id>

if you only want to undo a specific commit but keep the rest of your changes intact…

OR ask the AI tell it what you want to do or have happen and it’ll create the commands for you.

Hope that helps