git 其他merge

1、情况
当前test_2分支:

git checkout origin/test_1 1.html

是将test_1分支的1.html文件内容覆盖test_2对应的文件内容

2、当前分支test_2分支:
git checkout --patch origin/test_1 1.html
合并test_1 1.html文件到 test_2 分支 (合并指定文件到当前文件)
y
n

Apply this hunk to index and worktree [y,n,q,a,d,j,J,g,/,e,?]

posted @ 2020-06-30 17:42  Running00  阅读(96)  评论(0编辑  收藏  举报