Git

Last Updated: 7/20/2023

Renaming or Moving Files

Option 1

mv file1.txt main.js
git add file1.txt
git add main.js
git commit -m "Refactor code"

Option 2

git mv file1.txt main.js
git commit -m "Refactor code"