2015-10-23 133 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 

或者還有就是解決你的問題:)

其他可能的方法