Lessons from a thoughtbot Apprentice

Lessons from a thoughtbot Apprentice

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 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.

Hound reviews Ruby and CoffeeScript code for style violations and comments on your GitHub pull requests. Free for open source repos.