Now, for instance, we can decide to remove those CSS changes, and I am going to commit lesson finished only JavaScript. In order to revert those changes, you can click on this menu over here and click undo last comment, which are going to move the changes that we had before to stage. Of course, we may decide that we didn't like those changes after all. I am going to put in lesson finished, and I am going to use this keyboard shortcut to commit the files to the repo. In order to commit those changes, type in the commit message and then press the keyboard shortcut over here to commit. There's also an option to unstage all the changes, which I am not going to use right now. Of course, if we decide that some files do not belong in this comment, we can unstage the changes by clicking on this minus button over here. We're going to do this for all the files. In order to stage changes, which means that they would be part of the next comment, hover over a file and press, "Stage changes." Now, we are ready to commit our work to the repo. I'm going to do the same for this other file. "Are you sure that you would like to discard the changes in this file?" Yes, we would like to. ![]() If we decide that we would like to get rid of some changes, we can click on the discard changes button over here. If we click on the file name, we're going to be able to see the difference between the current version, and the version that was previously coming to the repository. First, we can open up a file to see what's the current status of it. If we hover over a file, we can see a bunch of different options. Here, we can see all the modified files that we have in our project. In order to do that in Visual Studio Code, we can click on the Git app over here. ![]() We would like to commit them to our repository. We would like to make sure that we are not going to lose our changes. Instructor: We have been working on our app for a while.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |