From the course: Complete Guide to Git

Unlock the full course today

Join today to access over 24,900 courses taught by industry experts.

Edit files

Edit files

- [Instructor] In this movie, we will see how Git notices when tracked files change and learn how to commit those changes to the repository. I have the git_project open in my text editor. There are three files in it, and they've all been committed to the repository. On the command line, I'm inside my project directory, and git status shows me that there's nothing to commit right now. Let's make some edits. Let's go over here, instead of this is my first file, let's change it to this is the first file I added to my project. We'll save that change. Now we know that we just modified a file that's in our working directory. Notice that the text editor helpfully colored it for me and put an M next to it for modified. If we come over here, git status will tell us the same thing. It says that there's a change that's been made, changes that are not staged for commit. It noticed that this file was modified. That's slightly different than what we had before, when we had new files. It was telling…

Contents