I ran into a similar problem with github and solved it by configuring my git repo over SSH instead of HTTP.
Step1: On the github.com page for your repo you will see three buttons HTTPS, SSH and Git Read Only. Click on "SSH" and copy the contents of the text field. Now there are a couple of ways you can change the configuration:
Step 2a: By editing the config file manually:
Open the .git folder of your repo and edit the config file. Look for [remote "origin"] and set the url config as follows:
[remote "origin"]
#The contents of the text field you copied in Step 1
url = git@github.com:<username>/<projectname>.git
Step 2b: With a git command:
Just run the following command (replace username and projectname variables):
git config remote.origin.url git@github.com:<username>/<projectname>.git
Step3: You can view/confirm the changes with the following command. Look for "remote.origin.url" config:
git config -l