# AUX Folder and Git

Today, I encountered an issue where the folder name `aux` caused problems in a Git repository. This is because `aux` is a reserved folder name in Windows.

Typically, someone using macOS or Linux might push a folder named `aux` into a repository. However, when you attempt to check out the branch containing this folder on a Windows system, you may encounter the following error:

```SHELL
➜  my-repo git:(my_branch) ✗ git checkout branch_with_aux
error: invalid path 'config/aux/README.md'
# fails switching branches
➜  my-repo git:(my_branch) ✗
```

## Fix

To resolve this issue, you can disable the protection for NTFS reserved names by running the following command:

```SHELL
git config core.protectNTFS false
```

This command allows Git to bypass the restriction on NTFS reserved names, enabling you to check out the branch without encountering the error.

> **Tip:**
> References
>
>
>
> [Stack Overflow: GitHub Git checkout returns error: invalid path on Windows](https://stackoverflow.com/questions/63727594/github-git-checkout-returns-error-invalid-path-on-windows)
>
>
>
> [Microsoft Docs: Naming Files, Paths, and Namespaces](https://learn.microsoft.com/en-us/windows/win32/fileio/naming-a-file#naming-conventions)

