A Realistic Log History
Clone a repository and view its history.
We'll cover the following
So far you’ve seen fairly contrived and straightforward Git repositories.
Cloning#
First, you’re going to clone a codebase with a history. My rather messy shutit
project is a good example to look at. Not because of any careful curation or attention to detail in its construction but for the messiness of its history as I’ve become better acquainted with Git.
1 git clone https://github.com/ianmiell/shutit.git
2 cd shutit
Once cloned (it can take a while), run this command to view the kind of output git log
can show you. Type this out:
3 git log --graph --oneline --all --decorate --topo-order
By the end of this chapter, you’ll understand what’s going on here.
Introduction: Git Log
The 'git log' Command
Mark as Completed
Report an Issue