“git reflog” command helps in tracking all the changes made in the references of a repository. It maintains a log history of locally created or checked out references to repository.