- 安装Git
- sudo apt-get install git
- 配置git信息
- git config –global user.name “Your Name”
- git config –global user.email “email@example.com”
- git config –list 查看设置
- 配置ssh
- ssh-keygen -t rsa -C “youremail@example.com”
- 会看到有id_rsa(私钥),id_rsa.pub(公钥) 拷贝公钥
- 在自己的github上添加公钥,add key.
- 以后提交代码就不用输入账号密码了。
Ubuntu下配置git
最新推荐文章于 2024-06-09 01:37:23 发布