1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
|
git-rename-file(1) -- Rename a file or directory and ensure Git recognizes the change, regardless of filesystem case-sensitivity.
================================================
## SYNOPSIS
`git-rename-file` [OPTIONS] <source> <destination>
## DESCRIPTION
The `git-rename-file` command renames a file or directory and ensures Git recognizes the change, regardless of filesystem case-sensitivity. It combines the functionality of the `mv` command and `git mv`.
This is particularly useful for renaming files or directories to change only their case, which might not be detected by Git on case-insensitive filesystems.
## OPTIONS
-h, --help
Show usage information.
## EXAMPLES
Rename a file:
```sh
git-rename-file old_filename new_filename
```
Rename a directory:
```sh
git-rename-file old_directory new_directory
```
## AUTHOR
Written by Zachary Miller <<codebyzach@gmail.com>>
## REPORTING BUGS
<https://github.com/tj/git-extras/issues>
## SEE ALSO
<https://github.com/tj/git-extras>
|