gitee命令

git init 
git add . 
git commit -m '提交说明'
git remote add origin https://gitee.com/wen-fenglong/lon-gg.git
git push -u origin master


error: failed to push some refs to 'XXXX'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

1、先拉下来,将两个仓库内容合并
git pull --rebase origin master
2、再上传
git push -u origin master
posted @ 2021-06-28 19:30  欧阳物语  阅读(45)  评论(0)    收藏  举报