How do I reference git commits? This functionality changes

In the past I could type @Git and then select a commit or diff I wanted to add to the context. This functionality disappeared in Cursor 2.0, what is the new way of doing this?

The functionality has been merged into @Commit.

When you type @Commit, the very first option in the list is usually ‘Diff of Working State’.
This allows you to add your current uncommitted changes (diffs) to the chat context, just like the old @Git command did.

This is a different functionality. The OP is asking about adding a specific, historical commit into the context.
It is a useful feature that helps analyze why something was added into the codebase the way it was, review code etc.
My thread on the issue: @ tag specific commit

3 Likes

Ah, I see what you mean now – thanks for clarifying!

You are right. I just checked my dropdown again and @CommitCommit indeed only suggests the ‘Diff of Working State’ and then jumps straight to listing files. The convenient list of historical commits (@Githich @Git used to show) seems to be missing in the UI currently.

That definitely would be better in 2.0 if we can easily pick past commits from a list – without knowing the hash

Edit: @condor already confirmed the removed feature (@git).

1 Like

As some of the functionality is shifting towards agentic usage you can still let Agent know which commit you reference and what you want it to do, using words. AI can find the commit and do something with it if required.

1 Like