I'm assuming it also logs some debugging information with regards to your git client's behavior, though. So you could still be able to get to that contact form.
My point is chances are you can't visit https://github.com/contact to paste your debugging result, if you're "Having trouble connecting to github.com".