如何为gitlab设置配置?
How to set config for gitlab?
我用了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
ssh key 与 https url 无关。
- https 将使用您的 GitLab 帐户凭据。
- ssh 将使用
$HOME/.ssh/id_rsa(.pub)
如果你想使用 ssh url,你至少应该切换到 ssh:
cd /path/to/my/repo
git remote set-url origin git@gitlab.com:artem-solovev-lse/notepad.git
我用了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
ssh key 与 https url 无关。
- https 将使用您的 GitLab 帐户凭据。
- ssh 将使用
$HOME/.ssh/id_rsa(.pub)
如果你想使用 ssh url,你至少应该切换到 ssh:
cd /path/to/my/repo
git remote set-url origin git@gitlab.com:artem-solovev-lse/notepad.git