Git sync fork

@kevgo please review
I wonder if this stuff should go into a helper method inside "github_helpers.sh". You can also create a "json_helper.sh" if you want to extract the JSON parsing into that.