# Cannot git ignore cloned Rules Repo

**URL:** <https://forum.cursor.com/t/cannot-git-ignore-cloned-rules-repo/179627>\
**Category:** Help\
**Tags:** indexing, rules\
**Created:** [November 30, 2026, 7:38pm UTC](https://forum.cursor.com/t/cannot-git-ignore-cloned-rules-repo/179627 "2026-11-30T19:38:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mark\_Klimp](https://avatars.discourse-cdn.com/v4/letter/m/f04885/32.png) [@Mark\_Klimp](https://forum.cursor.com/u/Mark_Klimp)\
**Post date:** [November 30, 2026, 7:38pm UTC](https://forum.cursor.com/t/cannot-git-ignore-cloned-rules-repo/179627/1 "2026-11-30T19:38:11Z")

</div>

Background in these posts:

> [@Agent model change around the weekend? Frustration rising](https://forum.cursor.com/t/agent-model-change-around-the-weekend-frustration-rising/160562):
>
> This is my second month. In my first month, I tried a lot of different agents. I really liked Opus but realized it was burning my API bucket too quickly. I stepped back to Sonnet 4.6 which helped me finish my month in a productive fashion. From 5/8 through 5/10 I had not used Sonnet. I started back on Monday and it feels like a completely different agent. I have a small browser extension project and a workspace for a web site and my droplet. Both projects have been super time consuming/frustrat…

> [@How do you import Rules in the latest Rules settings](https://forum.cursor.com/t/how-do-you-import-rules-in-the-latest-rules-settings/170505):
>
> Per [this conversation](https://forum.cursor.com/t/agent-model-change-around-the-weekend-frustration-rising/160562/6), importing rules from github is the best practice. In this latest Rules Setting section from the Customize section I cannot figure out how to do it. My existing projects still import the rules but I have a new project and cannot figure it out. Also, the documentation seems to refer to the old Rules settings functionality.

> [@Allowing agent to read files in .gitignore](https://forum.cursor.com/t/allowing-agent-to-read-files-in-gitignore/169021):
>
> Hi, I have files in .gitignore which I don’t want to commit but I want the agents to access, how do I do this? Then a follow up question, why does agent care about git rules, they are completely different things. Cursor has its own rules already, why not just use those? Tons of users complaining this same problem online, surely I’m not the only one crazy?

I have been cloning my Rules repository into a number of repos. Since the rules are cloned, I decided to git ignore them. If I do this, the Agents no longer see the rules clone. I tried creating a .cursorignore file to allow the Agent to see the cloned files but this does not work.

In summary, I created the Rules repo as recommended by Cursor Staff as a best practice. This function was then deprecated so I created a script to maintain the clones. Since these are all clones, I added the folders to gitignore. If rules are git ignored, the Agent will not load them, even if a .cursorignore file is created to allow the Agent access.

Seems like this is no longer a best practice since it is now somewhat convoluted. The last time I had this volume of rules defined within Cursor, I started having context problems. Will rules repo support return at some point? Can Cursor be updated to load the files as specified in .cursorignore? Is defining a large number of rules in Customize no longer a context problem? Help.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/colin/32/90452_2.png) [@Colin](https://forum.cursor.com/u/Colin)\
**Post date:** [November 30, 2026, 8:10pm UTC](https://forum.cursor.com/t/cannot-git-ignore-cloned-rules-repo/179627/5 "2026-11-30T20:10:44Z")

</div>

Hey @Mark_Klimp, you can keep the clones gitignored. Rule loading follows `.gitignore` and doesn’t apply `.cursorignore` re-includes yet, but it does read a `.rgignore` file. Add one at the root of each repo that re-includes the folder you ignored. If the `.gitignore` line is `.cursor/rules/imported/`, the `.rgignore` is:

```auto
!.cursor/rules/imported/

```

Then run Developer: Reload Window from the Command Palette and the rules should be back in Customize \> Rules. `.rgignore` can go in `.gitignore` too.

Or drop the per-repo clones: Cursor also loads `.cursor/rules` from every parent folder of the open project, so one clone above all your repos (say `~/code/.cursor/rules/Cursor-Rules`) covers them all. Those rules keep their own apply settings, unlike a long list of User Rules, and show under User in Customize \> Rules.

Rules not following `.cursorignore` is a known issue the team is aware of. The GitHub import isn’t back in Customize, and I don’t have a timeline for it.

---

<div class="post-metadata">

**Author:** ![Mark\_Klimp](https://avatars.discourse-cdn.com/v4/letter/m/f04885/32.png) [@Mark\_Klimp](https://forum.cursor.com/u/Mark_Klimp)\
**Post date:** [December 1, 2026, 3:31pm UTC](https://forum.cursor.com/t/cannot-git-ignore-cloned-rules-repo/179627/11 "2026-12-01T15:31:52Z")

</div>

![image](https://us1.discourse-cdn.com/cursor1/original/3X/0/8/08e8e1bcae58d2dded265035524e7e03b4d7f4ac.png)

I realized I should have consulted the Cursor docs before I submitted the help request and decided to loop back to it. FYI the above picture is what I received.
