git 常用命令

添加远程服务器

1、未设置过远程服务器

git remote add origin xxx

2、已经设置过更改远程服务器

git remote set-url origin xxx

git ssh key 生成

1、设置 Git 的 user name 和 email

git config --global user.name "lxmnet"
git config --global user.email "lxmnet@outlook.com"

2、生成秘钥

ssh-keygen -t rsa -C "longdada"

 

未完待续...

版权声明:
作者:灰糖
链接:https://longdada.me/git-command/
来源:灰糖笔记
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
< <上一篇
下一篇>>