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.
解决
2.
解决
3.
解决