Simple Git commit rake script

Posted by connatser on Sep 5, 2011 in Development, Tools | No Comments

I have been learning a ton of different technologies lately, one set being Ruby, Rails and how to run Rake build scripts. So, since I like to 1) give away free scripts, 2) automate my daily workflow and 3) use my blog to remember things…here is a sample git commit rake script that I created this weekend.

Just drop this script into a RakeFile, put it in your project root, and run “rake commit”.

You will:

  1. see a git status
  2. be asked if you want to automatically commit the changes
  3. if you say yes you will be prompted for a commit message.

Switch to our mobile site