github本地代码上传-2021
创建仓库
这个是仓库的https后面连接仓库需要用
在本地右键git bash(需要下载git)
git init
git add .
git commit -m "add update message"
git remote add origin +<https>
现在github 上传需要token 在setting里 点击 developer settings
在person access tokens 点击 generate new token
输入名字 选择repo
得到token如下
输入 git remote set-url origin +《token》 设置token
git push -u origin master
#提交代码
可能遇到的情况
1.![image-20211002225829042](https://img-blog.csdnimg.cn/img_convert/f6e03de18d997e1373e06a93ed71aaa1.png)
解决
2.
解决
3.![image-20211002225952168](https://img-blog.csdnimg.cn/img_convert/c9abc7791d5fbd86af98b9ee2c44af7c.png)
解决