Pycharm和bitbucket插件

时间:2013-07-08 05:17:02

标签: git bitbucket pycharm

我已经安装了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 -- .
  • 我尝试导入到版本控件 - >在Github上分享项目 - 没关系
  • 我还在项目目录中安装了本地.git

[更新] 设置我的repo和初始提交后,当我尝试推送smth时,我遇到pycharm中的新错误:Push failed: fatal: The remote end hung up unexpectedly我将我的公钥添加到bitbucket但是这不能解决我的问题。解决方案是通过https而不是ssh连接到bitbucket

  • 转到bitbucket并将https链接复制到您的仓库
  • 使用https链接
  • 修改项目目录url中文件中的.git/config

1 个答案:

答案 0 :(得分:3)

我遇到了同样的问题,这是解决方案:

http://www.youtube.com/watch?v=klfLSRXUOzY

这里的主要问题是PyCharm / PHPStorm / IntelliJ没有向项目添加远程。这意味着您必须通过git add remote <your remote here>

手动添加遥控器