git上传本地代码到git上面,执行git push origin master命令报错:
error: failed to push some refs to 'https://gitee.com/demo.git' hint: Updates were rejected because the tip of your current branch is behind hint: its remote counterpart. Integrate the remote changes (e.g. hint: 'git pull ...') before pushing again. hint: See the 'Note about fast-forwards' in 'git push --help' for details.
执行 git push --force 命令解决报错
git push --force https://gitee.com/demo.git