# \[URC\] Unreal Revision Control scans and removes .git and .code-workspace files inside the project tree

**URL:** <https://forums.unrealengine.com/t/urc-unreal-revision-control-scans-and-removes-git-and-code-workspace-files-inside-the-project-tree/2716459>\
**Category:** Issues and Bug Reporting\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, fixed, fortnite\
**Created:** [April 18, 2026, 8:47pm UTC](https://forums.unrealengine.com/t/urc-unreal-revision-control-scans-and-removes-git-and-code-workspace-files-inside-the-project-tree/2716459 "2026-04-18T20:47:50Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![ArcaneStudio](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ArcaneStudio](https://forums.unrealengine.com/u/ArcaneStudio)\
**Post date:** [April 18, 2026, 8:47pm UTC](https://forums.unrealengine.com/t/urc-unreal-revision-control-scans-and-removes-git-and-code-workspace-files-inside-the-project-tree/2716459/1 "2026-04-18T20:47:50Z")

</div>

### Summary

Unreal Revision Control is scanning and removing non-URC files/folders from the local project directory, specifically `.git` and `*.code-workspace`. This started for us around April 2026 (within the last week). We need URC for team collaboration and large project assets, but we also need Git only for code history and readable diffs. This coexistence used to work for us before.

### Please select what you are reporting on:

Unreal Editor for Fortnite

### What Type of Bug are you experiencing?

Unreal Revision Control

### Steps to Reproduce

1. Open a UEFN project on Windows with Unreal Revision Control enabled.
2. Put a `.git` folder either:
  - in the project root, or
  - inside `Content`

3. Put a `*.code-workspace` file inside the project tree.
4. Use UEFN normally and perform URC actions such as Sync Latest / Check In / Push / regular status refresh.
5. Observe the local filesystem after URC activity.

### Expected Result

URC should ignore files/folders that are not part of the URC repository and should not delete them from disk.

### Observed Result

- `.git` in the project root gets scanned by URC and later disappears from disk.
- `.git` inside `Content` also gets scanned by URC and later disappears from disk.
- `*.code-workspace` files inside the project tree also disappear from disk.
- In my local test, renaming the Git metadata folder from `.git` to `_gitrepo` made it survive one URC push, which suggests there may be special-case handling around `.git` and possibly `.code-workspace`.

### Platform(s)

- Windows
- UEFN project compatibilityVersion: 40.20
- Unreal Revision Control log shows: `0.6.4-nightly+2417`

### Additional Notes

Relevant Log Evidence:

1. URC scanning project root `.git` and `.code-workspace`:  
`[2026-04-18T14:01:24.239Z] ... UrcRepositoryStatusArgs { ... paths: [.../Aor/Aor.code-workspace, .../Aor/.git] }`

2. URC scanning `.git` inside `Content`:  
`[2026-04-18T20:07:02.669Z] ... UrcRepositoryStatusArgs { ... paths: [.../Aor/Content/.git/COMMIT_EDITMSG, .../Content/.git/config, ...] }`

3. URC also scans renamed Git metadata folder `_gitrepo`, but in this case it survived:  
`[2026-04-18T20:33:10.415Z] ... UrcRepositoryStatusArgs { ... paths: [.../Aor/Content/_gitrepo/config, ...] }`  
`[2026-04-18T20:33:10.447Z] ... Ignoring invalid path, not found in repository: .../Content/_gitrepo/...`

Request:  
Please confirm whether this behavior is intended. If not, please treat it as a regression. URC should not remove unrelated local Git metadata or workspace files from the project directory.

---

<div class="post-metadata">

**Author:** ![ArcaneStudio](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ArcaneStudio](https://forums.unrealengine.com/u/ArcaneStudio)\
**Post date:** [April 19, 2026, 7:51am UTC](https://forums.unrealengine.com/t/urc-unreal-revision-control-scans-and-removes-git-and-code-workspace-files-inside-the-project-tree/2716459/3 "2026-04-19T07:51:58Z")

</div>

_ **Update from our side:**  
We tested a few more variants and found one workaround that is stable for now._

_What **did not** solve it:_

- _keeping .git in the project root_

- _keeping .git inside Content_

- _using a .git file that points to another git dir_

- _renaming the git metadata folder for use inside the project tree_

_In all of those cases, URC still interfered with Git metadata inside the project directory._

_What **does** work for us:_

- _keep the actual Git repository **outside** the UEFN project folder_

- _example:_

- _then let Git track only that project folder_

_With this setup, URC no longer removes Git metadata, because .git is no longer inside the project tree._

_So at this point, the problem seems specifically tied to Git-related files existing **inside** the UEFN project directory.  
This workaround is usable, but it is still only a workaround. URC should not be deleting .git, .git indirection files, or \*.code-workspace files from inside the project tree._

---

<div class="post-metadata">

**Author:** ![gxg\_work](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gxg\_work](https://forums.unrealengine.com/u/gxg_work)\
**Post date:** [April 21, 2026, 12:02am UTC](https://forums.unrealengine.com/t/urc-unreal-revision-control-scans-and-removes-git-and-code-workspace-files-inside-the-project-tree/2716459/4 "2026-04-21T00:02:55Z")

</div>

@ArcaneStudio Thank you for the detailed report. Our team will look into it.

Just to confirm you do not want URC to track these folders/files right? You just want them properly ignored/untouched on disk by URC?

---

<div class="post-metadata">

**Author:** ![ArcaneStudio](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ArcaneStudio](https://forums.unrealengine.com/u/ArcaneStudio)\
**Post date:** [April 22, 2026, 11:56am UTC](https://forums.unrealengine.com/t/urc-unreal-revision-control-scans-and-removes-git-and-code-workspace-files-inside-the-project-tree/2716459/5 "2026-04-22T11:56:28Z")

</div>

Yes, if I add them to .urcignore, URC shouldn’t track them or delete them. It’s extremely convenient to keep Git in the project directory.

---

<div class="post-metadata">

**Author:** ![gxg\_work](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gxg\_work](https://forums.unrealengine.com/u/gxg_work)\
**Post date:** [April 22, 2026, 4:15pm UTC](https://forums.unrealengine.com/t/urc-unreal-revision-control-scans-and-removes-git-and-code-workspace-files-inside-the-project-tree/2716459/6 "2026-04-22T16:15:31Z")

</div>

Confirming that we’re investigating this actively, and will keep you all posted once we have target release confirmed for a fix.

Linking a related topic here as well: [[CRITICAL] URC or checking in process wipes certain project files - #7 by gxg\_work](https://forums.unrealengine.com/t/critical-urc-or-checking-in-process-wipes-certain-project-files/2717213/7)

---

<div class="post-metadata">

**Author:** ![gxg\_work](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gxg\_work](https://forums.unrealengine.com/u/gxg_work)\
**Post date:** [April 22, 2026, 9:22pm UTC](https://forums.unrealengine.com/t/urc-unreal-revision-control-scans-and-removes-git-and-code-workspace-files-inside-the-project-tree/2716459/8 "2026-04-22T21:22:44Z")

</div>

**Update here:** we’ve confirmed this issue is fixed in next week’s 40.30 release.

We’re also validating a workaround to give you in the meantime, which we’ll have more info on tomorrow.

Thanks again for your prompt reports and your patience.

---

<div class="post-metadata">

**Author:** ![gxg\_work](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gxg\_work](https://forums.unrealengine.com/u/gxg_work)\
**Post date:** [April 23, 2026, 12:09am UTC](https://forums.unrealengine.com/t/urc-unreal-revision-control-scans-and-removes-git-and-code-workspace-files-inside-the-project-tree/2716459/10 "2026-04-23T00:09:18Z")

</div>

@ArcaneStudio to workaround the bug ahead of next week’s release, you may wish to try the following:

- Close UEFN
- Locate the `urc.dll` in `C:\Program Files\Epic Games\Fortnite\FortniteGame\Binaries\Win64`and copy it to your desktop for safe keeping
- Drop in the `urc.dll` attached here—it is the version of the dll that will ship with next week’s release—into that folder and replace the existing one.
- Relaunch UEFN, work as you would expect, and confirm that the .urcignore is properly respected

Note: If you notice anything amiss you can always replace it again with the copy you made to your desktop to get back to the state you are now.

[urc.dll](https://forums.unrealengine.com/uploads/short-url/gGmL6ZCR74zm2lqjouf8EvZvMm2.dll) (19.8 MB)

---

<div class="post-metadata">

**Author:** ![gxg\_work](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gxg\_work](https://forums.unrealengine.com/u/gxg_work)\
**Post date:** [April 30, 2026, 10:35pm UTC](https://forums.unrealengine.com/t/urc-unreal-revision-control-scans-and-removes-git-and-code-workspace-files-inside-the-project-tree/2716459/11 "2026-04-30T22:35:40Z")

</div>

This should now be resolved in today’s 40.30 release. Please let us know if you are still experiencing it.

---

<div class="post-metadata">

**Author:** ![Bug-Reporter](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bug-reporter/32/1223650_2.png) [@Bug-Reporter](https://forums.unrealengine.com/u/Bug-Reporter)\
**Post date:** [September 1, 2026, 9:00pm UTC](https://forums.unrealengine.com/t/urc-unreal-revision-control-scans-and-removes-git-and-code-workspace-files-inside-the-project-tree/2716459/12 "2026-09-01T21:00:14Z")

</div>

FORT-1090448 is ‘Closed’ as ‘Fixed’. The issue will be addressed in 40.30.

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [October 15, 2026, 8:47pm UTC](https://forums.unrealengine.com/t/urc-unreal-revision-control-scans-and-removes-git-and-code-workspace-files-inside-the-project-tree/2716459/13 "2026-10-15T20:47:50Z")

</div>

This topic was automatically closed after 180 days. New replies are no longer allowed.
