Extract git command building to their own method to reduce duplication
Extract git command building to their own method to reduce duplication

lacek/redmine_github_hook,pinghe/redmine_github_hook,koppen/redmine_github_hook,lacek/redmine_github_hook,koppen/redmine_github_hook,pinghe/redmine_github_hook