https://github.com/buzzardgta/duplicategitfileschecker
Windows and Git do not share the same case sensitivity rules, so this situation may lead to errors or issues when working with Git repositories on Windows.
https://github.com/buzzardgta/duplicategitfileschecker
case-insensitive case-sensitive case-sensitivity files git ignorecase insensitive sensitive windows
Last synced: 30 days ago
JSON representation
Windows and Git do not share the same case sensitivity rules, so this situation may lead to errors or issues when working with Git repositories on Windows.
- Host: GitHub
- URL: https://github.com/buzzardgta/duplicategitfileschecker
- Owner: BUZZARDGTA
- Created: 2023-10-23T09:21:03.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-19T19:59:41.000Z (over 1 year ago)
- Last Synced: 2025-04-03T12:31:31.273Z (about 1 year ago)
- Topics: case-insensitive, case-sensitive, case-sensitivity, files, git, ignorecase, insensitive, sensitive, windows
- Language: Python
- Homepage:
- Size: 19.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DuplicateGitFilesChecker
This script returns a list of files that are duplicated within your Git repository.
## Usage
Usage: `python "DuplicateGitFilesChecker.py" ""`
## Known Issue
If you need this script to work with folders as well, please create an issue in the repository.
I have a working method for handling folders by iterating recursively through the directory structure using the following Git command:
```
git ls-tree --name-only -d HEAD
```
I didn't code this because I personally don't need it, but it effectively lists directories in a Git repository, which would be a starting point to implement the script to works with folders as well.
## Extra
Something else useful is the git command:
`git config core.ignorecase true` (can be set to `true`, `false` or `unset`)
see more at:
https://git-scm.com/docs/git-config