Hello everybody!๐ค ๐ค
In this post I will explain a little about a very important command used in git, and that serves us to review the history of changes of our project.
Well we will continue with the test project that we created in the previous post, where at the moment we have only created an index.html file
git log
Well, first we open the code editor again and we will create the basic structure of an html page ...
As we see we have already modified something in our project, and are the new lines of code that we added in the file index.html.
Now if we open our terminal and go to the root of our project we will see the change that has been made, as shown below ...
First we are going to add these changes again to the staging area and we will publish it to our repository.
Now that we have already registered two changes in our project, and if we need to see that in reality if they are registered, what we do is execute the command $ git log, where we will get a list of changes we have made over time in our project.
As we see in the image, there are two commits made in the project, and we get information for each change registered in our project, such as the date and the author, also the comment we made when adding the change.
So simple is that we can see a record of all the changes in our project.
Well that's it
Regards! ๐ค ๐ค