单纯记录一下:
git init
git remote add origin xxxxx(项目地址)
git add .
git commit -m "xxxxx"(提交信息)
git branch --set-upstream-to origin/master
git pull --allow-unrelated-histories
git push origin master
PS:在gitos china上创建远程仓库的时候最好不要选择自动创建.ignore,会出很多问题。。。
单纯记录一下:
git init
git remote add origin xxxxx(项目地址)
git add .
git commit -m "xxxxx"(提交信息)
git branch --set-upstream-to origin/master
git pull --allow-unrelated-histories
git push origin master
PS:在gitos china上创建远程仓库的时候最好不要选择自动创建.ignore,会出很多问题。。。
本文标题:git首次连接远程仓库并提交的命令顺序
本文链接:https://www.haomeiwen.com/subject/qpacyqtx.html
网友评论