2015-10-23 26 views

回答

1

回答:不。 Git不像例如SVN在文件夹级别不提交。

长答案:由于给定的文件树是给定提交的一个不可处理的部分,因此无法在未提交的部分提交给定的提交。

但你可以代替操作如下:

git fetch <remote> 
git merge --no-commit <required remote branch> 
[edit the changes of the merge as you need, use git checkout <revision> -- <path> etc..] 
git commit 

或者还有就是解决你的问题:)

其他可能的方法