如何为gitlab设置配置?

时间:2016-01-21 14:54:00

标签: git version-control config 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

1 个答案:

答案 0 :(得分:3)

ssh key与https网址无关。

  • https将使用您的GitLab帐户凭据。
  • ssh会使用f x

如果你想使用ssh url,你应该至少切换到ssh:

$HOME/.ssh/id_rsa(.pub)