git强制提交本地分支覆盖远程分支

git push origin 分支名 –force

 

eg:

cd 代码目录

git push origin master –force

 

运行结果:

Total 0 (delta 0), reused 0 (delta 0)

To https://bitbucket.org/jnj_edg/akg-solution.git

 + f20ec88…d2128f5 master -> master (forced update)

 

    原文作者:Master HaKu
    原文地址: https://www.cnblogs.com/davidgu/p/9072493.html
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞