You've got a lot of Gal

Yet another blog about Ruby, Rails, Javascript, Apple, Malteses and Shih-Tzus by Gal Steinitz

This site is completely static. It was last generated with Octopress and Jekyll on Sep 02, 2013 and hosted on github pages.

Easter Egg? Cause Git to Say: "Already Up-to-date. Yeeah!"

Git responses are usually very straightforward and to the point, but today I got git to say “Yeah!” by telling it to merge something it just merged. To get your git to be a little silly too:

Immediately after doing a merge, look at that last merge commit

1
2
3
4
5
6
7
8
$ git log -n1

commit 76c4ac19c545fdc9d20c43beb358c47c0d84185a
Merge: 2619f49 0f71f1f
Author: someone@somewhere.com
Date:   Fri Jun 17 17:36:10 2011 -0700

[master] Merge branch 'release'

Then…tell git to merge the same two SHA’s again

1
2
$ git merge 2619f49 0f71f1f
Already up-to-date. Yeeah!

This is using git v1.7.5.4 command line, on OSX.