Archived video

This video is archived and won't be updated. We're keeping it online for now as a courtesy.

Moving Through Git History

Video loading...

Transcript language code: 

Join Drupalize.Me to watch this video

Join today and gain instant access to our entire video library.

Log in Sign up
  • 0:03
    [CHAPTER 7] [with Blake Hall]
  • 0:05
    One of the more useful tools when using version control software,
  • 0:08
    is the ability to navigate your project's history.
  • 0:11
    We'll take a look at git log and some handy flags you can pass to it
  • 0:15
    to make that output a little bit more usable.
  • 0:17
    We'll also look at a few other methods for navigating this project history
  • 0:20
    including parent relationships and dates
  • 0:24
    so you can do things like see what your repository looked like two weeks ago.
  • 0:28
    Part of the power and reason for using version control
  • 0:31
    is having the ability to navigate the history of your project.
Loading ...

Moving Through Git History


There are a lot of different ways to reference a specific commit in Git. This lesson takes a look at the various ways in which you can navigate through the history of a project by cloning the Drupal core repository from and looking at it's contents. We'll learn about pointers to each commit, or what Git refers to as a Treeish, and how we can use those as paramaters to different commands.

The git log alias that Blake is using to pretty-up his log is:
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative.

You can find out more about adding Git aliases in Git Aliases and Other Fun Configuration (which will be published on April 10, 2013).