我使用official guide进行配置。密钥已生成。不明白如何设置配置。 这是我的档案:
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "origin"]
url = https://gitlab.com/artem-solovev-lse/notepad.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master
答案 0 :(得分:3)
ssh key与https网址无关。
f x
如果你想使用ssh url,你应该至少切换到ssh:
$HOME/.ssh/id_rsa(.pub)