User Tools

Site Tools


work:git-config

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
work:git-config [2010/06/28 09:21] – created percywork:git-config [2011/09/10 18:14] – external edit 127.0.0.1
Line 23: Line 23:
 ====== 参考 ====== ====== 参考 ======
 http://hi.baidu.com/d_life/blog/item/c5ef6e823a3b93b46c8119c5.html http://hi.baidu.com/d_life/blog/item/c5ef6e823a3b93b46c8119c5.html
 +
 +
 +
 +====== Gentoo上git ======
 +我需要在宿舍电脑上也能够clone代码,这就需要添加另外一个key了。
 +参考:http://help.github.com/linux-key-setup/
 +之前如果已经存rsa的话,需要先记着备份。
 +
 +创建命令:
 +  ssh-keygen -t rsa -C "pengjianqing@gmail.com"
 +然后将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