命令格式 

git push origin 分支名 --force

实例:使用本地 master 分支覆盖远程分支(即使本地分支处于v1版本,远程分支处于比v1更新的版本)

git push origin master --force 

 

相关文章: