Skip to main content


Showing posts from June 14, 2011

automatic repo commit

The whole idea of computing is that the computer should work more than the man.
I realized this when I had to manually add origin and commit, push every repository that I downloaded. So here's the script that does the job for me.

 echo exec('git init');
 echo exec('touch readme');
 echo exec('git remote rm origin');
 echo exec('git add .');
 echo exec('git remote add origin git@localhost:'.$argv[1].'.git');
  echo exec('git commit -a -m "some message"');
 echo exec('git push origin master');