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)
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)
转载于:https://www.cnblogs.com/davidgu/p/9072493.html