Skip to content

Instantly share code, notes, and snippets.

@aroemen
Last active December 10, 2015 12:39
Show Gist options
  • Save aroemen/4435774 to your computer and use it in GitHub Desktop.
Save aroemen/4435774 to your computer and use it in GitHub Desktop.
Used to change the case in a directory for a Git repository. Or use this config command `git config core.ignorecase false`
mv foo foo2
git add -A
git commit -m "renaming"
mv foo2 FOO
git add -A
git commit --amend -m "renamed foo to FOO"
# or in git v1.7.7+
git mv improper_Case improve_case2
git mv improper_case2 improve_case
git commit -m "<your message>"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment