Skip to content

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.

Notifications You must be signed in to change notification settings

Illegal-Services/DuplicateGitFilesChecker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 

Repository files navigation

DuplicateGitFilesChecker

This script returns a list of files that are duplicated within your Git repository.

Usage

Usage: python "DuplicateGitFilesChecker.py" "<git_repo_path>"

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

About

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.

Topics

Resources

Stars

Watchers

Forks

Languages