【问题标题】:Intellij - cannot connect existing project to an existing Github repoIntellij - 无法将现有项目连接到现有的 Github 存储库
【发布时间】:2021-04-23 09:05:35
【问题描述】:

我有一个现有的 Intellij(Ultimate 20,1 beta)项目,我想将它添加到现有的 Github 存储库中

在 Intellij 中,我使用“设置/Github”选项验证了我的帐户。我已将 IntelliJ 设置为 Github 上的授权应用。

当我尝试设置 Github 远程时,我收到“远程:未找到存储库”错误

有什么建议吗?

作为附言,我从 Github 中删除了我的代表,然后尝试使用 Intellij Git/Github/Share 功能从 Github 创建 repo。 此过程创建了新的 repo,但失败并显示以下消息

0:18    Can't finish GitHub sharing process
            Successfully created project 'gd-smart' on GitHub, but initial push failed:
            remote: Repository not found.
            repository 'https://github.com/davoutuk/gd-smart.git/' not found

【问题讨论】:

  • 您是否启用了“使用凭据助手”?您是否在首选项 | 下看到“缺少访问令牌”?版本控制 | GitHub? 2020.1不是最新版本,能不能更新到2021.1看看问题是否依旧?

标签: github intellij-idea


【解决方案1】:

最终通过

得到了这个工作
Within Intellij I unchecked "use credential helper"  
Closed Intellij
Deleted the ".git" sub directory 
Deleted the 'vcs.xml' file 
Made sure that I had a working Github connection under 'Settings/Github' 
Then re-opened Intellij and selected the VCS for Git

【讨论】:

    猜你喜欢
    • 2014-12-08
    • 1970-01-01
    • 1970-01-01
    • 2013-01-04
    • 2018-04-27
    • 1970-01-01
    • 2013-10-13
    • 2021-09-11
    • 1970-01-01
    相关资源
    最近更新 更多