Renaming a File: GIT VS TFS

Renaming a file is a bit of challenge in GIT:

you basically  have to move the file and do a checkin(ideally content of the file)  and the remove the old file.

Step1: Move the file in GIT

git mv DowloadFile.ps1 FILE.ps1

git commit “FILE.ps1” –m “message”

git push

Step2: Removing file in git.

Git rm “FILE.ps1”

Git status

Git commit . –m “message”

Git push

Renaming a file is a bit of challenge in TFS:

Rename the file and folder and then check-in… Simple  🙂

Leave a Reply

Your email address will not be published. Required fields are marked *