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