Skip to content

Category Archives: SCM

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.

QotD: Mike on Version Control Best Practices

< mdehaan> atomic commits are dangerous, just as atomic weapons
He may have been sarcastic. Maybe.

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.

git rebase: keeping your branches current

Where possible, I use git for my scm now. All software on dangerously incompetent is stored in git, and I do my personal yum work with git-cvsimport. One of the reasons I like git so much is git-rebase. Here’s an example of how it works:
There is some upstream project that you wish to work on. [...]