📌  相关文章
📜  git 合并特定文件 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:41.965000             🧑  作者: Mango

代码示例1
git checkout [branch where you want to merge]
git checkout [branch where files are located] [path_to_file1] [path_to_file2...]
//You can now see the file added to your next commit with
git status
//Dont forget to commit
git commit -m "message"
//e.g:
git checkout master
git checkout dev src/a_specific_file.c
git commit -m "merged a_specific_file in master"