# Cursor Wsl2 failed to clone remote rule from github

**URL:** <https://forum.cursor.com/t/cursor-wsl2-failed-to-clone-remote-rule-from-github/147234>\
**Category:** Bug Reports\
**Created:** [December 24, 2025, 9:48am UTC](https://forum.cursor.com/t/cursor-wsl2-failed-to-clone-remote-rule-from-github/147234 "2025-12-24T09:48:56Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Harumonia\_C](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/harumonia_c/32/91288_2.png) [@Harumonia\_C](https://forum.cursor.com/u/Harumonia_C)\
**Post date:** [December 24, 2025, 9:48am UTC](https://forum.cursor.com/t/cursor-wsl2-failed-to-clone-remote-rule-from-github/147234/1 "2025-12-24T09:48:57Z")

</div>

### Where does the bug appear (feature/product)?

Cursor IDE

### Describe the Bug

1. The `cursor-retrieval` extension in Cursor IDE throws a `spawn /usr/bin/git ENOENT` error when executing the `git clone` command, preventing it from automatically cloning the rules repository.
2. After manually cloning the repository to `\root\.cursor\projects\root-Project-fastapi-casbin\rules`, Cursor still fails to recognize the rules.

### Steps to Reproduce

1. Connect to WSL2 Ubuntu via Cursor.
2. In Cursor Settings, add a rule via Remote Rule (GitHub) and enter [GitHub - zxjlm/cursor-fastapi-rules](https://github.com/zxjlm/cursor-fastapi-rules.git).
3. The error occurs.

### Expected Behavior

Rule succeed to add in the project .

### Screenshots / Screen Recordings

 ![giterror.png](https://us1.discourse-cdn.com/cursor1/original/3X/b/e/bed788cf1be4774a2286363a35bb0aa803c42b0b.png)

### Operating System

Windows 10/11

### Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.2.43 (user setup)  
VSCode Version: 1.105.1  
Commit: 32cfbe848b35d9eb320980195985450f244b3030  
Date: 2025-12-19T06:06:44.644Z  
Electron: 37.7.0  
Chromium: 138.0.7204.251  
Node.js: 22.20.0  
V8: 13.8.258.32-electron.0  
OS: Windows\_NT x64 10.0.26100

### For AI issues: which model did you use?

Not use AI

### For AI issues: add Request ID with privacy disabled

Not use AI

### Additional Information

- **WSL2 Version：** 2.6.3.0
- **Linux：** Ubuntu 22.04.5 LTS (Jammy Jellyfish)
- **Core：** 6.6.87.2-microsoft-standard-WSL2
- **Git Version：** 2.34.1

* * *

I can manually to clone the repository use git to the local folder. but after manually cloning the repository to `\root\.cursor\projects\root-Project-fastapi-casbin\rules`, Cursor fails to recognize the rules.

The `Cursor settings -> Rules and commands -> Project Commands ` display nothing.

### Does this stop you from using Cursor

No - Cursor works, but with this issue

---

<div class="post-metadata">

**Author:** ![Harumonia\_C](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/harumonia_c/32/91288_2.png) [@Harumonia\_C](https://forum.cursor.com/u/Harumonia_C)\
**Post date:** [December 24, 2025, 9:52am UTC](https://forum.cursor.com/t/cursor-wsl2-failed-to-clone-remote-rule-from-github/147234/3 "2025-12-24T09:52:31Z")

</div>

may be it because of the path cursor used .

**wrong：**

```auto

cwd: \root\.cursor\projects\root-Project-fastapi-casbin\rules

```

**right：**

```auto

cwd: /root/.cursor/projects/root-Project-fastapi-casbin/rules

```

---

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [December 24, 2025, 10:38am UTC](https://forum.cursor.com/t/cursor-wsl2-failed-to-clone-remote-rule-from-github/147234/5 "2025-12-24T10:38:19Z")

</div>

Hey, thanks for the report! You’re absolutely right. The issue is that Cursor uses Windows path separators (`\`) instead of Linux (`/`) when running in a WSL2 environment.

This is a known issue with Extensions in WSL. The team is already working on fixing path handling for WSL2.

Unfortunately, there’s no working workaround for Remote Rules in WSL right now. Even manual cloning doesn’t help, because Cursor still uses the wrong path format when trying to detect the rules.

As a temporary workaround, you can use local `.cursorrules` files instead of Remote Rules.

---

<div class="post-metadata">

**Author:** ![Harumonia\_C](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/harumonia_c/32/91288_2.png) [@Harumonia\_C](https://forum.cursor.com/u/Harumonia_C)\
**Post date:** [December 25, 2025, 1:44am UTC](https://forum.cursor.com/t/cursor-wsl2-failed-to-clone-remote-rule-from-github/147234/6 "2025-12-25T01:44:34Z")

</div>

Alright, thank you for your reply. I’ll start by using `.cursorrules` , and look forward to further resolution.

---

<div class="post-metadata">

**Author:** ![Nguyen\_Do](https://avatars.discourse-cdn.com/v4/letter/n/2acd7d/32.png) [@Nguyen\_Do](https://forum.cursor.com/u/Nguyen_Do)\
**Post date:** [December 30, 2025, 4:26am UTC](https://forum.cursor.com/t/cursor-wsl2-failed-to-clone-remote-rule-from-github/147234/8 "2025-12-30T04:26:43Z")

</div>

I also **received** that notification. I hope it will be fixed soon :(((

---

<div class="post-metadata">

**Author:** ![andrewh](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/andrewh/32/65515_2.png) [@andrewh](https://forum.cursor.com/u/andrewh)\
**Post date:** [January 3, 2026, 7:52pm UTC](https://forum.cursor.com/t/cursor-wsl2-failed-to-clone-remote-rule-from-github/147234/10 "2026-01-03T19:52:24Z")

</div>

Fix coming here shortly. Apologies!

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/99069_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [January 25, 2026, 7:53pm UTC](https://forum.cursor.com/t/cursor-wsl2-failed-to-clone-remote-rule-from-github/147234/11 "2026-01-25T19:53:00Z")

</div>

Closed on January 25, 2026, 7:53pm UTC

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.
