Looking at Repository's History

Learn how to find the history of a repository.

We'll cover the following

The git log command#

If you want to look at the history of this repository, then run the git log command:

1   cd ..2   git log
Terminal 1
Terminal

Click to Connect...

You have a problem! This repository does not have history to look at. So what happened?

Git has followed the HEAD pointer to the refs/heads/master entry and found nothing there! And indeed, there is nothing there:

3   ls .git/refs/heads/master

You will need to create a history for git log to return something useful.

Initializing Git Repository
Retrieving a Repository's Status
Mark as Completed
Report an Issue