git上传命令

git init

git add *

git commit -m "20200619"

git remote add origin https://github.com/MoonXu0722/puzzle_gml.git

git push -u origin master

git push -u origin master -f//强制覆盖

-------------------------------------------------

echo "# qt_video_player-v0.1" >> README.md
git init
git add .
git commit -m "first commit"
git branch -M main
git remote add origin git@github.com:MoonXu0722/qt_video_player-v0.1.git
git push -u origin main
----------------------------------------------
上面的已失效
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://[token]@github.com/MoonXu0722/mm.git
git push -u origin main
 
 
posted @ 2020-06-19 15:33  MoonXu  阅读(128)  评论(0)    收藏  举报