我已经安装了bitbucket plufin来连接我的Pycharm和bitbucket。我在PyCharm的VCS菜单中试过 - >导入到版本控制 - >分享项目(带bitbucket图标) - >将其命名为我的项目 - >标记它是Git存储库 - >单击确定然后我收到错误消息“在bitbucket上共享项目 - 推送失败”
Log 11:11:33.157: cd /Users/apple/Documents/Projects/Python/Study_python2
11:11:33.157: git show --name-status -M --pretty=format:%x01%h%x02%H%x02%ct%x02%an%x02%at%x02%ae%x02%cn%x02%ce%x02%p%x02%d%x02%s%x02%b%x02%B%x03 --encoding=UTF-8 5847233
11:11:33.066: cd /Users/apple/Documents/Projects/Python/Study_python2
11:11:33.066: git log HEAD --branches --remotes --tags --max-count=340 --date-order --pretty=format:%x01%h%x02%ct%x02%p%x02%an%x03 --encoding=UTF-8 --full-history --sparse -- .
[更新]
设置我的repo和初始提交后,当我尝试推送smth时,我遇到pycharm中的新错误:Push failed: fatal: The remote end hung up unexpectedly
我将我的公钥添加到bitbucket但是这不能解决我的问题。解决方案是通过https而不是ssh连接到bitbucket
url
中文件中的.git/config
答案 0 :(得分:3)
我遇到了同样的问题,这是解决方案:
http://www.youtube.com/watch?v=klfLSRXUOzY
这里的主要问题是PyCharm / PHPStorm / IntelliJ没有向项目添加远程。这意味着您必须通过git add remote <your remote here>