Git directory cleanup ruby script

I added a Ruby porting of the IronPython script used to clean up the 'git' directory, in order to delete useless files.