Git tutorial #8 - Git log

in #tutorials7 years ago

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! 🤓 🤓

Sort:  

I just found this awsome post!! I can't wait for the next Git post have a great day

Thanks my friend!

Este Post ha recibido un Upvote desde la cuenta del King: @dineroconopcion, El cual es un Grupo de Soporte mantenido por 5 personas mas que quieren ayudarte a llegar hacer un Top Autor En Steemit sin tener que invertir en Steem Power. Te Gustaria Ser Parte De Este Projecto?

This Post has been Upvote from the King's Account: @dineroconopcion, It's a Support Group by 5 other people that want to help you be a Top Steemit Author without having to invest into Steem Power. Would You Like To Be Part of this Project?

Peace, Abundance, and Liberty Network (PALnet) Discord Channel. It's a completely public and open space to all members of the Steemit community who voluntarily choose to be there.Congratulations! This post has been upvoted from the communal account, @minnowsupport, by juanpchica from the Minnow Support Project. It's a witness project run by aggroed, ausbitbank, teamsteem, theprophet0, someguy123, neoxian, followbtcnews/crimsonclad, and netuoso. The goal is to help Steemit grow by supporting Minnows and creating a social network. Please find us in the