2017-08-28 66 views
0

我以爲我可以做到這一點,但後來我開始輸入命令,我想讓我回來,並確保我做到了這一點!如何合併之前提交的另一個分支中的一個文件

預先感謝您!

+0

不能合併單一提交,你合併分支。問題提交中是否也包含對其他文件的更改? –

+0

[如何合併Git中的特定提交]的可能重複(https://stackoverflow.com/questions/881092/how-to-merge-a-specific-commit-in-git) – phd

回答

0

獲取提交ID,切換到分支您要合併,並做摘櫻桃,具體如下:

git checkout another-branch 
git cherry-pick commit-id-hash 
相關問題