![]() The commit message returned above was “Update index.html”.Īll this data gives us useful information about the commits in our repository. The message associated with the commit.In our above example, this was Tuesday, April 7th. The email of the author is also specified. In our above example, this was James Gallagher. 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. You can see the hash of each Git commit, 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. Get Your Coding Bootcamp Sponsored by Your Employerīy continuing you agree to our Terms of Service and Privacy Policy, and you consent to receive offers and opportunitiesįrom Career Karma by telephone, text message, and email.īut how do you actually view the history your Git repository creates? That’s where the git log command can be helpful.Education Stipends for Coding Bootcamps.Best Coding Bootcamp Scholarships and Grants.Ultimate Guide to Coding Bootcamp Loans.What Is a Coding Bootcamp Job Guarantee?.Best Free Bootcamps and Coding Training.Best Online Coding Bootcamps and Courses. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |