git Pycharm 和 bitbucket 插件
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/17519590/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Pycharm and bitbucket plugin
提问by Danil Mironov
I have installed bitbucket plufin to connect my Pycharm with bitbucket.I have tried in VCS menu in PyCharm -> import into Versions control -> Share project (with bitbucket icon) -> name it like my project -> mark that it is Git repository -> click Ok and I get then error message "Share project on bitbucket - push failed"
我已经安装了 bitbucket 插件来将我的 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 -- .
- I have tried to import into Versions control -> Share project on Github - and it's OK
- Also I have local .git installed in project dir
- 我尝试导入到版本控制 -> 在 Github 上共享项目 - 没问题
- 另外我在项目目录中安装了本地 .git
[Update]After setting up my repo and initial commit I met new error in pycharm when I tried to push smth: Push failed: fatal: The remote end hung up unexpectedly
I add my public key to bitbucket but that din't solve my problem. The solution was to connect to bitbucket via https not ssh
[更新]设置我的 repo 和初始提交后,当我尝试推送 smth 时,我在 pycharm 中遇到了新错误:Push failed: fatal: The remote end hung up unexpectedly
我将我的公钥添加到 bitbucket 但这并没有解决我的问题。解决方案是通过 https 而不是 ssh 连接到 bitbucket
- Go to bitbucket and copy https link to your repo
- Edit
url
in the file in your project dir.git/config
with https link
- 转到 bitbucket 并将 https 链接复制到您的存储库
- 使用 https 链接编辑
url
项目目录中的文件.git/config
采纳答案by Games Brainiac
I've faced the same problem, here is the solution:
我遇到了同样的问题,这是解决方案:
http://www.youtube.com/watch?v=klfLSRXUOzY
http://www.youtube.com/watch?v=klfLSRXUOzY
The main problem here, is that no remote is added to the project by PyCharm / PHPStorm / IntelliJ. This means you have to manually add the remote via git add remote <your remote here>
这里的主要问题是 PyCharm / PHPStorm / IntelliJ 没有将遥控器添加到项目中。这意味着您必须通过手动添加遥控器git add remote <your remote here>