moved 'unpushed local commit' logic to Git.local_commits
Merge pull request #4 from j-clark/master

Changed Git.local_commits to be more robust