From the course: Visual Studio: Source Control with Git and GitHub

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Rename files: PowerShell

Rename files: PowerShell - Visual Studio Tutorial

From the course: Visual Studio: Source Control with Git and GitHub

Start my 1-month free trial

Rename files: PowerShell

- [Instructor] Look at some of the file operations you can perform in Git, starting with renaming. So I have this file called CountryList.txt that I don't like the name so I'll change it to Countryies. (keyboard typing) And then I go over here and check the status and I see that Git considers this two actions. There was a deletion from CountryList.txt and a new untracked file is here called Countryies.txt. So I need to do git add all. (keyboard typing) And check the status and I see it's been renamed and now I can commit this. (keyboard typing) And there's my change, one renamed file. Changed from CountryList.txt to Countryies.txt and I see that I wasn't paying attention and so I'm going to need to redo this again. Let's go through those steps. I'm going to remove the letter y. (keyboard typing) Check my status, I'm seeing the same status as before. Luckily I can just recall those again so I'll do add and then…

Contents