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"
未完待续...
共有 0 条评论