diff --git a/README.md b/README.md index d64be6f..a7c56c4 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,7 @@ For clarity's sake all examples in this document use a customized bash prompt in - [What did I just do?](#what-did-i-just-do) - [I want to add changes in one file to two different commits](#i-want-to-add-changes-in-one-file-to-two-different-commits) - [I want to remove a file from git but keep the file](#i-want-to-remove-a-file-from-git-but-keep-the-file) + - [I want to change a file name's capitalization, without changing the contents of the file.](#i-want-to-change-a-file-names-capitalization-without-changing-the-contents-of-the-file) - [Clone all submodules](#clone-all-submodules) - [Deleting Objects](#deleting-objects) - [I want to delete local branches that were deleted upstream](#i-want-to-delete-local-branches-that-were-deleted-upstream) @@ -547,6 +548,13 @@ Let's say that you just blindly committed changes with `git commit -a` and you'r (master)$ git rm --cached log.txt ``` + +## I want to change a file name's capitalization, without changing the contents of the file. + +```sh +(master)$ git mv --force myfile MyFile +``` + ## Clone all submodules