![]() The Secure Hash Algorithm (SHA) hash for the commit, which is used to uniquely identify each commit in a repository. Each entry returned by the git log command contains: To do so, we can use this command:Ĭommit 43433c674e3d6c86a889fad222dae179785893cf (HEAD -> master, origin/master, origin/HEAD) Now we want to see a list of all the commits we have pushed to our repository. We have been working on a repository called “demo-repository”. Let’s walk through an example to illustrate how the git log command works. Whereas the git status command is focused on the current working directory, git log allows you to see the history of your repository. This command is useful for displaying the history of a repository. ![]() , the message associated with each commit, and more metadata. The git log command shows a list of all the commits made to a repository. This tutorial will discuss, with examples, the basics of the git log command and how you can use it to inspect a Git repository. , and you consent to receive offers and opportunities from Career Karma by telephone, text message, and email.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |