GIT-RENAME-FILE(1)
π git-rename-file β the manual page, but make it cute
okay bestie, welcome to the git-rename-file glow-up guide β¨ this is part of the Git Extras situation, and she's honestly underrated.
β¨ NAME β¨
git-rename-file β rename a file or directory and make sure Git actually notices, no matter how case-sensitive (or not) your filesystem is being that day π«Ά
πΈ SYNOPSIS πΈ
git-rename-file OPTIONS source destination
π¦ DESCRIPTION π¦
so here's the tea, bestie: git-rename-file renames a file or a directory, and it guarantees Git recognizes the change, regardless of filesystem case-sensitivity. She's literally doing the job of mv and git mv at the same time β like, both. combined. one command. iconic behavior only π
and the moment you'll be obsessed: this is particularly useful when you wanna rename files or directories and the only thing changing is the case β because Git might straight up not detect that on case-insensitive filesystems π like she just looks at myFile.txt and myfile.txt and goes "same thing, bestie, nothing to see here." rude. this command fixes that.
π OPTIONS π
-h,--helpβ shows you the usage info. the classic "wait how do I do this" button π
π EXAMPLES π
Rename a file, periodt:
git-rename-file old_filename new_filename
Rename a directory, same energy:
git-rename-file old_directory new_directory
π AUTHOR π
Written by Zachary Miller <codebyzach@gmail.com> β thank you for your service, king π«‘β¨
π REPORTING BUGS π
found something cursed? spill it here, no gatekeeping:
https://github.com/tj/git-extras/issues
π§ SEE ALSO π§
the whole git-extras cinematic universe lives at:
https://github.com/tj/git-extras
fr fr, go rename something with confidence. your filesystem case-sensitivity could NEVER dim your light π
okay that's the whole page, bestie π this was Git Extras, dated May 2026 β stay slay, keep your filenames exactly how you want 'em, and may your git status always be clean β¨π
π¦
π¦ where this page comes from
- ubuntu stonking: git-extras 7.5.0-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms