github get start

本文详细介绍了如何在GitHub上使用SSH密钥进行安全的仓库克隆与推送操作。包括创建账户、生成SSH密钥、配置用户信息、添加密钥到GitHub以及解决权限拒绝等常见问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1.create account 

2.create new repository

3.generate key as follows

https://help.github.com/articles/generating-ssh-keys


main points:

ssh-keygen -t rsa -C "email@gmail.com"  

ssh -T git@github.com 

ssh -vT git@github.com (debug)

git config --global user.name 'The Name' 

git config --global user.email "email@gmail.com" 


copy the the content of id_rsa.pub to the SSH Keys of github (account settings>> SSH Keys)

4.git clone git@github.com:ukouryou/urlinspector.git (make sure use 'Read+Write access' model)

5.got error Agent admitted failure to sign using the key  Permission denied (publickey)

6.execute command ssh -vT git@github.com (debug) 

we can see the Server host key and the Remote key are different 

7.execute command ssh-add

8.and then execute ssh -vT git@github.com (debug) 

it's ok right now

9.git clone 

modify xxx

git add xxx

git commit -a

git push


OVER!


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值