Git 合併其他分支單一檔案

git checkout <target_brach>
git checkout -p | --patch <source_branch> <file>

y - stage this hunk 變更此區塊
n - do not stage this hunk 不變更此區塊
q - quit; do not stage this hunk nor any of the remaining ones 離開;不變更此區塊和後面剩餘部分
a - stage this hunk and all later hunks in the file 變更此區塊和這個檔案後面所有區塊
d - do not stage this hunk nor any of the later hunks in the file 不變更此區塊和後面剩餘部分
g - select a hunk to go to 選擇去某一區塊
/ - search for a hunk matching the given regex 用正則表達示搜尋某一區塊
j - leave this hunk undecided, see next undecided hunk
J - leave this hunk undecided, see next hunk
k - leave this hunk undecided, see previous undecided hunk
K - leave this hunk undecided, see previous hunk
s - split the current hunk into smaller hunks
e - manually edit the current hunk
? - print help