gerrit克隆,权限不够的解决方法

来源:互联网 发布:怎么利用大数据抄股票 编辑:程序博客网 时间:2024/05/18 01:00

gerrit,还有就是git公钥的添加,其实还是很简单的,按空格键默认就好了。

1、$ ssh-keygen -t rsa

2、Generating public/private rsa key pair.
3、Enter file in which to save the key (/c/Users/qtan/msyshome/.ssh/id_rsa):

4、Created directory '/c/Users/qtan/msyshome/.ssh'.
5、Enter passphrase (empty for no passphrase):

6、Enter same passphrase again:


3,5,6我都是按的空格键,之前在 3 后面按了一个“yes”,然后在当前目录下面生成了 yes 和 yes.pub 文件,结果克隆的时候出了问题:

$ git clone ssh://qtan@shaitgrt01.cn.zmt.local:29418/zadas/zadas && scp -p -P 29418qtan@shaitgrt01.cn.zmt.local:hooks/commit-msg zadas/.git/hooks/
Cloning into 'zadas'...
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.


git bash是能够在任何地方进行download代码的工具,可以说是非常方便!比如说我把服务器映射到本地的Z盘(虚拟的),但是还是可以用git bash工具把其他服务器上面的代码下载到这个虚拟的Z盘。
qtan@WIN-90GIMDOL8DG MINGW64 /z
$ git clone ssh://qtan@shaitgrt01.cn.zmt.local:29418/zadas/zadas && scp -p -P 29418qtan@shaitgrt01.cn.zmt.local:hooks/commit-msg zadas/.git/hooks/
Cloning into 'zadas'...



原创粉丝点击