【问题标题】:GitLab and Visual Studio Code integrationGitLab 和 Visual Studio 代码集成
【发布时间】:2021-12-04 22:08:47
【问题描述】:

我正在尝试将 Visual Studio Code 集成为 GitLab,以便为我同事的高级项目执行软件版本控制。

我已经用这个命令试过了。

  1. git config --global user.name "xx xxxx"

  2. git config --global user.email "xx.xxxx@mail.com"

  3. git clone ssh://git@gitlab.com/NewFolder/repo.git

引入此命令后终端显示:

“正在克隆到‘状态编辑器’... PC@gitlab.com:权限被拒绝(公钥,keyboar-interactive)。 致命:云未从远程存储库中读取。 "

我该怎么办?提前致谢!

【问题讨论】:

    标签: git gitlab


    【解决方案1】:

    一,您需要确保您拥有added an SSH public key to your GitLab account,并且被 GitLab 正确识别/验证:

    ssh -Tv git@gitlab.com
    

    二,你需要在GitLab上创建一个空项目,供你克隆/访问:

    git clone ssh://git@gitlab.com/<me>/<myRepo>
    

    &lt;me&gt; 替换为您的实际 GitLab 用户帐户名。
    NewFolder”可能不是您的 GitLab 帐户。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-03-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-08-29
      • 2019-07-07
      相关资源
      最近更新 更多