Added example for changing capitalization of a file

This commit is contained in:
Richard Littauer 2015-08-18 11:11:17 -04:00
parent e046ac055c
commit ca934fe3ff
1 changed files with 8 additions and 0 deletions

View File

@ -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
```
<a href="i-want-to-change-a-file-names-capitalization-without-changing-the-contents-of-the-file"></a>
## I want to change a file name's capitalization, without changing the contents of the file.
```sh
(master)$ git mv --force myfile MyFile
```
<a name="clone-submodules"></a>
## Clone all submodules