zjxhx 发表于 2018-1-14 06:07:28

使用sshkey,禁用密码登陆,以及git仓库的搭建

$ sudo git init --bare test.git  Initialized empty Git repository in /home/username/test.git/      #提示初始化了一个空的git仓库
  $ ls test.git
  branchesconfigdescriptionHEADhooksinfoobjectsrefs      #该目录下的内容
  $ sudo chown -R username:username test.git      #修改该目录的owner和group为username
页: [1]
查看完整版本: 使用sshkey,禁用密码登陆,以及git仓库的搭建