1.建远程仓库(gitee)
2.创建个本地文件夹
3.拉远程仓库
git clone ..............git
4.上传需要的文件
//把代码复制过来
git add -A
git commit -m "xxx"
git push
问题:
新电脑公钥问题(linux):
1.生成秘钥
ssh-keygen -t ed25519 -C "xxxxx@xxxxx.com"
完成三次回车
2.查看秘钥:
cat ~/.ssh/id_ed25519.pub
3.回到设置
4.添加公钥
设置邮箱和用户:
$ git config --global user.name "username"
$ git config --global user.email "email"