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.
•
• Type git mv < old filename > < new filename >
and press the return key to rename the file.
•
• Type ls < new filename >
and press the return key to sanity check renaming was successful.
•
• Type git commit -m “< commit message >”
and press the return key to commit the change with a commit message.
•