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

Unlock the full course today

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

Add files: PowerShell

Add files: PowerShell - Visual Studio Tutorial

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

Start my 1-month free trial

Add files: PowerShell

- [Instructor] At this point, we have an empty folder that is containing a Git repository so what we'll do is we'll use PowerShell to add some files to the repository and then commit the changes. First let's check our status. It's telling us here that there's nothing to commit and that the solution is to create or copy files and then us git add to track. So let's talk about the benefits of Git again before I do that. Remember that Git is a directory-based system. That means any files I add to this folder or its children folder are eligible to be added to the Git repository and Git works with any file types. It doesn't have to be code files or web files. So I'll start by adding some Office files to this folder. I've added an Excel spreadsheet and a Word document. Then we'll go back over here and run git status and now I get a new message that says there are two files that are not tracked and then I need to…

Contents