bitbucket + git

I had been having issues pushing repositories to bitbucket using git push -u origin master which gives the following error:

conq: Invalid command syntax fatal: The remote end hung up unexpectedly

The culprit seems to be the receivepack option which got corrupted. This can be reset to the default value for all repositories (drop the –global for a specific repository) using:

git config --global remote.origin.receivepack git-receive-pack

Hope this helps, as it took me a while to work out!