github项目初始化

git init

git add .

git commit -m "备注信息"

连接到远程仓库

git remote add origin 你的远程仓库地址

将项目推送到远程仓库

git push -u origin master

解决分支不能提pull request问题

git pull origin main --allow-unrelated-histories

注意 github创建的项目默认主分支已经是main而不是master了

posted @ 2022-03-05 22:45  天涯屐痕  阅读(91)  评论(0编辑  收藏  举报