Linux上git安装和使用

2024-06-21 李腾 119 次阅读 0 次点赞

安装git

sudo apt install git

生成ssh key

ssh-keygen

设置邮箱和用户名

git config --global user.email 930372551@qq.com
git config --global user.name liteng

常见问题

1、解决sign_and_send_pubkey: signing failed for RSA "/home/liteng/.ssh/id_rsa" from agent: agent refused operation 的问题。

chmod 0600 ~/.ssh/id_rsa
最后更新于1年前
本文由人工编写,AI优化,转载请注明原文地址: Linux上git安装和使用

评论 (0)

发表评论

昵称:加载中...

暂无评论,快来发表第一条评论吧!