Skip to content

Tag Archives: git

Graphing Git Repository Activity In ASCII

Here’s a quick little script I wrote up (adapted from this perlmonks post) to show git repository activity as an ascii graph, like so:

The X axis represents a day, with the current day being on the far right. The Y axis is no. of lines added + no. of lines deleted during that day.

git bisect: A practical example with yum

I used git bisect to track down a bug in yum last night. It was so easy and practical that I figured I should record it here, so that others might want to give git a try.
I was attempting to install mutt, and yum failed (printing a traceback) after the rpms had been downloaded, but [...]

Did I mention that svn sucks?

$> svn co svn://gcc.gnu.org/svn/gcc/trunk gcc
$> cd gcc
$> du -h

1.6G .
$> svn export . ../clean-gcc
$> cd ../clean-gcc
$> du -h

638M .
$>

Oh, yes, I did.

Giving back to git

It must be obvious from previous posts that I love git. Tonight I sent a patch to the mailing list. It’s small and simple; it lets you save options for cvsimport in your config file, rather than supplying them each time you run it.
Hopefully it will be of use to others.

My .gitconfig

By default, git does not include aliases for commands. For instance,
‘git status’ works but ‘git st’ does not. This will hurt your noggin if you are
used to using cvs or svn.
Also, the internet is for posting config files on.
So here are the contents of my .gitconfig:

[user]
name = James Bowes
[...]