git 强行推送命令

1.推送代码

git push

2.强制推送代码

git push -f

3.强制推送代码到其他远程分支(中间有个:)

git push -f 远程仓库名 当前分支名:远程其他分支名

git push -f origin feature/s20211215-wph:feature/s20211215-other

4.提取某个提交的内容

git cherry-pick commitID

具体教程:http://www.ruanyifeng.com/blog/2020/04/git-cherry-pick.html

 

posted @ 2021-12-07 16:44  小巫同学  阅读(11938)  评论(0编辑  收藏  举报