# How to use a Commit as reference in Cursor IDE?

**URL:** <https://forum.cursor.com/t/how-to-use-a-commit-as-reference-in-cursor-ide/29345>\
**Category:** Help\
**Created:** [November 23, 2024, 2:51pm UTC](https://forum.cursor.com/t/how-to-use-a-commit-as-reference-in-cursor-ide/29345 "2024-11-23T14:51:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ameer8f26](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/ameer8f26/32/12151_2.png) [@ameer8f26](https://forum.cursor.com/u/ameer8f26)\
**Post date:** [November 23, 2024, 2:51pm UTC](https://forum.cursor.com/t/how-to-use-a-commit-as-reference-in-cursor-ide/29345/1 "2024-11-23T14:51:22Z")

</div>

I have made a commit with some changes in `users/create.vue` file. I want to use that commit as reference/context in Cursor Composer so AI can see the changes I made in create.vue file, **so I can ask the AI to apply same changes to the edit file** `users/[id].vue`, since both files have similar code and structure.

There git option when you type **@** in composer, and it shows commits as well, but AI response was :

_I don’t have direct access to the commit history or the changes made in “@create contact - tabs”. However, based on the code I can see, it appears you’re working with a tabbed interface for form fields._

---

<div class="post-metadata">

**Author:** ![seeflood](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/seeflood/32/16257_2.png) [@seeflood](https://forum.cursor.com/u/seeflood)\
**Post date:** [December 17, 2024, 7:55am UTC](https://forum.cursor.com/t/how-to-use-a-commit-as-reference-in-cursor-ide/29345/2 "2024-12-17T07:55:37Z")

</div>

Need this feature too !

---

<div class="post-metadata">

**Author:** ![john-savepoint](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/john-savepoint/32/15998_2.png) [@john-savepoint](https://forum.cursor.com/u/john-savepoint)\
**Post date:** [January 12, 2025, 9:11am UTC](https://forum.cursor.com/t/how-to-use-a-commit-as-reference-in-cursor-ide/29345/3 "2025-01-12T09:11:44Z")

</div>

yep this would be great. Currently you manually ask the ai to compare a sha of an old commit but it should be apart of the UI.

---

<div class="post-metadata">

**Author:** ![danperks](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/danperks/32/19087_2.png) [@danperks](https://forum.cursor.com/u/danperks)\
**Post date:** [January 16, 2025, 10:00am UTC](https://forum.cursor.com/t/how-to-use-a-commit-as-reference-in-cursor-ide/29345/4 "2025-01-16T10:00:53Z")

</div>

![Screenshot 2025-01-16 at 10.00.12](https://us1.discourse-cdn.com/cursor1/original/3X/1/a/1a1a0c6335471c5a6f82beaff917a583628ec32e.png)

Hey, when you do @git, you should be presented with a menu like this, allowing you to pick a commit to provide as context to the AI - is this not the case?
