Using git as a versioning system is great, but sometimes you might get some cryptic error messages.
To help you on debugging put git into verbose mode directly in your command line, and only for each command you need. Here's how:
$ GIT_CURL_VERBOSE=1 git push
Cheers