GitLab 和 Visual Studio 代码集成
GitLab and Visual Studio Code integration
我正在尝试将 Visual Studio 代码集成为 GitLab,以便为我在同事的高级项目执行软件版本控制。
我试过这个命令。
git 配置 --global user.name "xx xxxx"
git 配置 --global user.email "xx.xxxx@mail.com"
git 克隆 ssh://git@gitlab.com/NewFolder/repo.git
引入此命令后,终端显示:
“正在克隆到 'state-editor'...
PC@gitlab.com:权限被拒绝(公钥、键盘交互)。
致命:云未从远程存储库读取。 “
我该怎么办?提前致谢!
第一,你需要确保你有 added an SSH public key to your GitLab account,并且正确地 recognized/authenticated 通过 GitLab 与:
ssh -Tv git@gitlab.com
二、你需要在GitLab上创建一个空项目,供你clone/access:
git clone ssh://git@gitlab.com/<me>/<myRepo>
将 <me>
替换为您实际的 GitLab 用户帐户名。
“NewFolder
”可能不是您的 GitLab 帐户。
我正在尝试将 Visual Studio 代码集成为 GitLab,以便为我在同事的高级项目执行软件版本控制。
我试过这个命令。
git 配置 --global user.name "xx xxxx"
git 配置 --global user.email "xx.xxxx@mail.com"
git 克隆 ssh://git@gitlab.com/NewFolder/repo.git
引入此命令后,终端显示:
“正在克隆到 'state-editor'... PC@gitlab.com:权限被拒绝(公钥、键盘交互)。 致命:云未从远程存储库读取。 “
我该怎么办?提前致谢!
第一,你需要确保你有 added an SSH public key to your GitLab account,并且正确地 recognized/authenticated 通过 GitLab 与:
ssh -Tv git@gitlab.com
二、你需要在GitLab上创建一个空项目,供你clone/access:
git clone ssh://git@gitlab.com/<me>/<myRepo>
将 <me>
替换为您实际的 GitLab 用户帐户名。
“NewFolder
”可能不是您的 GitLab 帐户。