Rename File with Git in Terminal on Mac - VicPhanDevOps/mac GitHub Wiki

• Type ls < old filename > and press the return key to list the old filename.
image

• Type git mv < old filename > < new filename > and press the return key to rename the file.
image

• Type ls < new filename > and press the return key to sanity check renaming was successful.
image

• Type git commit -m “< commit message >” and press the return key to commit the change with a commit message.
image

⚠️ **GitHub.com Fallback** ⚠️