---
title: Lessons from a thoughtbot Apprentice
teaser:
tags: git
author: Gabe Berke-Williams
published_on: 2011-08-02
---

Hi, my name is Gabe Berke-Williams. I'm going to kick off this apprentice
learning series with a couple of git-related things I've learned from the
thoughtbot crew recently.

`git log --name-status` will show the status of each file in the commit. So if
you're looking for deleted files in commit ABCDE, you can do `git log
--name-status ABCDE | egrep '^D'`.

I use `git commit --amend` a lot to fix typos, and I learned from [this Stack
Overflow
post](http://stackoverflow.com/questions/1884474/change-old-commit-message-on-git)
that I can also use `git rebase --reword`. It only allows you to change the
commit message for a commit:

> It does the same thing "edit" does during an interactive rebase, except it
> only lets you edit the commit message without returning control to the shell.
