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 - Visual Studio Tutorial
From the course: Visual Studio: Source Control with Git and GitHub
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
-
-
-
-
Initialize a new repository: PowerShell3m 22s
-
Initialize a new repository: VS folder3m 29s
-
Initialize a new repository: VS solution2m 28s
-
Initialize a new repository: GitHub1m 42s
-
Add files: PowerShell3m 29s
-
Add files: VS4m 15s
-
Rename files: PowerShell1m 26s
-
Move files: PowerShell1m 13s
-
Delete files: PowerShell39s
-
File operations: VS1m 28s
-
-
-
-
-
-
-
-
-
-