TortoiseGit Create Patch Serial on Windows 7

Drupal 7 Patching With TortoiseGit

TortoiseGit is a great tool for developers. I recently started using it on Windows 7 and found out a few great things that may come in handy to others.

Initially I downloaded a module from the Drupal repository, did some work on it and assumed I could easily create a patch comparing my work on the desktop to the work in the Drupal repository. Not so much...

The trick is to create a local repository in a new folder on the local machine.

Step 1. Create a new folder, right click and select Git Create repository here... Do NOT check "Make it Bare".
Step 2. Copy and past a clean copy of the original work into the new repository folder. Right click on it and select Git Commit -> "master" ... Enter your name and email address as needed, enter a message, select set commit date, check whole project and click OK! (NOTE: Delete the .git folder inside the copied work.)
Step 3. Copy and past your work over the work that you just committed in the local repository then repeat the Git Commit -> "master" ... steps above. (NOTE: Make sure to delete the .git folder inside the work that you just copied over, if one exists.)
Step 4. Right click on the work and select Create Patch Serial... Under "Version" select the "Number Commits" radio button and click OK.

There you have it, a new patch! Rename it as needed. Open with your favorite txt editor and clean up as needed, then you are ready to submit the patch!

Screen Shot(s): 
TortoiseGit Create Patch Serial
Git Create repository here...