Created
March 11, 2016 21:46
-
-
Save drmohundro/0ca95fd7d5065b52723d to your computer and use it in GitHub Desktop.
Fix git casing issues across all directories
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# can just run this in pry | |
files = `git ls-files | grep Wrongcase` | |
files.split("\n").each { |file| system("git mv #{file} #{file.gsub('Wrongcase', 'WrongCase')}") } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I ran this to fix a repository that was set up in Windows (which is case-insensitive).