开发者

How create TortoiseGit branche for only need files?

I have next folder structure:

mySolution/
 |--.git/
 |--dirA/
 |--dirB/

I wont to create branch dirABranch for only dirA, so I create branch and commit from context menu of this dirA, and add not-ver开发者_如何学Pythonsioned files. But if I checkout for Master or for dirABranch, all solution restore state from that revision. But I want only dirA! Also I found some bug/unexpected behaviour if checkout from context menu of files in subdirectories. I use last Git,TortoiseGit on win7


You can't do this using one repository in git. The idea is that in git, a repository is always used as a whole.

Your best option is to split the repository in two. The second one will be only dirA and you include it into the main repository using as a submodule.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜