Skip to content

Commit 04bd0b9

Browse files
authored
Clarify usage of git mv for untracked files (#28)
Added clarification on using git mv for untracked files.
1 parent fe75efc commit 04bd0b9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

{{cookiecutter.__package_slug}}/AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ make pre-commit # Install pre-commit hooks
2020
git mv old_path new_path # ALWAYS use git mv for moving or renaming files, never use mv or file manipulation tools
2121
```
2222

23-
**CRITICAL**: When moving or renaming files in a git repository, you MUST use `git mv` instead of regular `mv` or file manipulation tools. This ensures git properly tracks the file history and prevents issues with version control.
23+
**CRITICAL**: When moving or renaming files in a git repository, you MUST use `git mv` instead of regular `mv` or file manipulation tools. This ensures git properly tracks the file history and prevents issues with version control. The only exception to this is if you are moving files which are not tracked in git, as in that case `git mv` will have no effect.
2424

2525
### Testing and Validation
2626

0 commit comments

Comments
 (0)