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)

 

posted @ 2018-05-22 15:56  Master HaKu  阅读(134625)  评论(0编辑  收藏  举报