![](/img/trans.png)
[英]With git, how to force overwrite a file in one branch, from a file in another branch (bypass merge), and commit?
[英]How to merge a previous commit of one file from another branch
我以為我可以做到這一點,但后來我開始鍵入命令,就像讓我們備份並確保我正確執行了!
先感謝您!
獲取提交ID,切換到要合並的分支並執行cherry-pick,如下所示:
git checkout another-branch
git cherry-pick commit-id-hash
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.