Skip to content

Instantly share code, notes, and snippets.

@jujhars13
Created January 4, 2013 11:16
Show Gist options
  • Save jujhars13/4451826 to your computer and use it in GitHub Desktop.
Save jujhars13/4451826 to your computer and use it in GitHub Desktop.
Windows command line based git commit using message given by whatthtecommit.com you'll need curl and git on your path too. to run: git-commit.bat <your optional commit message to be prepended on>
rem 2013-01-04 [email protected]
rem will run git commit and add yoru message and then append it with some random text from whatthecommit.bat
rem you'll need CURL in your path
for /f "tokens=* delims= " %%a in ('curl -s http://whatthecommit.com/index.txt') do (
git commit --verbose -a -m "%1 %%a"
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment