feature分支:用于开发新功能(有feature1,feature2,feature3,分别对应功能1,2,3)
develop分支:主干分支,用于集合所有的feature分支
- 一、首先切换到develop分支
git checkout develop
- 二、
git checkout --path feature1 src/components/change.txt
src/components/change.txt是合并文件的绝对路径
feature分支:用于开发新功能(有feature1,feature2,feature3,分别对应功能1,2,3)
develop分支:主干分支,用于集合所有的feature分支
git checkout develop
git checkout --path feature1 src/components/change.txt
src/components/change.txt是合并文件的绝对路径