Git推送 master 错误

本文最后更新于$day天前,文中所描述的信息可能已发生改变。

第一次上传Master错误

正在推送 master
Error: failed to push some refs to ‘https://git.dev.tencent.com/\*\*\*\*\*'
Error: 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.

将分支推送到远程存储库时遇到错误: rejected Updates were rejected because the tip of your current branch is behind its remote counterpart. Integrate the remote changes before pushing again.

因为是因为已经初始仓库,需要清空仓库再重新首次上传