Skip to content

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

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.

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