From ca934fe3ff7d65629d5c2988752c854b43e2b78b Mon Sep 17 00:00:00 2001 From: Richard Littauer Date: Tue, 18 Aug 2015 11:11:17 -0400 Subject: [PATCH] Added example for changing capitalization of a file --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) 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