I recently had a new project come up where I needed to use Wordpress.
Source control can be a bit of a nightmare, with the need to separate Wordpress core from the code you want to commit.
Therefore using advice from here:
I decided to build a template for doing this on my Github page.
Please feel free to use, contribute and frankly do whatever to.
TL;DR - I put together a template for using Wordpress with Git, which you can access here.