@Git
本文档内容均由官方文档翻译,仅供个人学习,如有错误请以官网文档为准!
官网网址:www.cursor.com
官网网址:www.cursor.com
Learn how to use @Git in Cursor’s Chat to analyze diffs, find bugs, and generate commit messages
Currently,
@Git is only supported in Chat & ComposerIn Cursor’s Chat, you can use @Git to add git commits, diffs, or pull requests to your prompt.
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.
You could also use @Diff of Working State to generate a commit message from your current diffs.