b站视频https://www.bilibili.com/video/BV16J411X7rP?p=18
一、github拉取项目上传到自己的github中
1、git clone项目到本地
2、在本地文件中执行git push 自建仓库地址 分支名
二、修改git的用户名和邮箱
1、git config --global user.email "you@example.com"
2、git config --global user.name "Your Name"
三、git推送到远程仓库
1. git push 远程仓库地址 分支名称
2. git remote add 远程仓库地址 别名远程仓库地址
3. git push 远程仓库地址别名 分支名称
4. git push -u 远程仓库地址别名分支名称 -u记住推送地址及分支,下次推送只需要输入git push即可