How to Edit Files in Git for Efficient Code Management


show more Editing files provides you with in-depth training on Developer. Taught by Kevin Skoglund as part of the Git Essential Training show less
please wait ...

Editing files

In the last movie we reviewed how we add files to our Git repository. Now what we want to see is how to edit files and how to Git works with those edits. I have my git project, and I have my three files here, let's make some edits to one of these files. So let's pop up in first_file.txt, it's called, This is the first file that I added to my project. So we've made an edit to it, let's save our change and close it. So now that change has been made to first_file.txt.

Now when we come back over to our command line we say git status now it comes up and it tells me, owe something is changed. Changes that are not staged for commit essentially just changes, and it tells me you've modified first_file.txt. Remember before I said there were untracked files, this is different. It's telling us about changes and tells us what those changes are, you've modified first_file.txt, if you want to add it, Git add it with add it, and then it tell us how we can discard those changes, whi...

Editing files
Video duration: 3m 56s 6h 25m Beginner

Viewers:

Editing files provides you with in-depth training on Developer. Taught by Kevin Skoglund as part of the Git Essential Training

Subject:
Developer
Software:
Git GitHub
Author:
please wait ...