@Git
Currently, @Git
is only supported in the Cursor Chat.
@Git
In Cursor’s Chat, you can use @Git
to add git commits, diffs, or pull requests to your prompt.
![](https://mintlify.s3-us-west-1.amazonaws.com/cursor/images/context/@git.png)
Common Use Cases
One common use case for @Git
is to allow Cursor’s AI to scan the diff and look for bugs or issues that could be caused by the diff.
![](https://mintlify.s3-us-west-1.amazonaws.com/cursor/images/context/@git-usecase1.png)
You could also use @Diff of Working State
to generate a commit message from your current diffs.
![](https://mintlify.s3-us-west-1.amazonaws.com/cursor/images/context/@git-commit-message.png)