Bitbucket :Git on Cygwin - Cannot push to remote repository

喜夏-厌秋 提交于 2019-12-05 19:39:49
wallance

Please check {project_folder}/.git/config file. If have remote repository URL ssh://. Remove it and try push operation.

git push -u origin --all

valid remote repository url

url = git@bitbucket.org:{username}/{project-name}.git

https://bitbucket.org/site/master/issue/4218/conq-invalid-repository-syntax

"For SSH issues, please try our troubleshooting guide at https://confluence.atlassian.com/display/BITBUCKET/Troubleshooting+SSH+Issues first. If you continue to have issues, then raise them to support@bitbucket.org or http://answers.atlassian.com where either support or the community can help address any issues with your configuration."

This issue is fixed. It was due to some clients having a uniquely set receivepack configuration. While I don't know what client decided to set this, numerous users were affected because Bitbucket's system wasn't designed to handle the non hyphenated git command syntax over SSH. Bitbucket has now changed this to allow for both git-receive-pack and git receive-pack to work.

For reference, check your global config and you'll probably see something like:

remote.origin.receivepack git receive-pack

When, by default, it isn't set, but has a default of git-receive-pack

I followed the instructions in this blogpost:

http://blog.cyplo.net/2012/10/25/using-git-in-cygwin-with-bitbucketgithubother-key-reliant-service/

It worked after I changed the group of the .ssh folder from None to Users

chown abudaan:Users .ssh -R

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!