work:git-config
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
work:git-config [2010/07/24 10:21] – percy | work:git-config [2011/09/10 18:14] – external edit 127.0.0.1 | ||
---|---|---|---|
Line 27: | Line 27: | ||
====== Gentoo上git ====== | ====== Gentoo上git ====== | ||
+ | 我需要在宿舍电脑上也能够clone代码,这就需要添加另外一个key了。 | ||
+ | 参考:http:// | ||
+ | 之前如果已经存rsa的话,需要先记着备份。 | ||
+ | |||
+ | 创建命令: | ||
+ | ssh-keygen -t rsa -C " | ||
+ | 然后将id_rsa.pub添加到github帐户中去。 | ||
+ | 然后我想着这个时候应该可以clone了吧,试了下不行, | ||
+ | Cloning into DellStage... | ||
+ | Agent admitted failure to sign using the key. | ||
+ | Permission denied (publickey). | ||
+ | fatal: The remote end hung up unexpectedly | ||
+ | 这个时候还需要将这个生成的key添加到系统中去, | ||
+ | ssh-add id_rsa | ||
+ | 再clone一下,OK了。 | ||
/var/www/dokuwiki/wiki/data/pages/work/git-config.txt · Last modified: 2016/05/05 13:07 by 127.0.0.1