Hi Yue,
On Thursday, June 22, 2017 at 4:50:21 AM UTC+2, yueli...@gmail.com wrote:
>
> The "git worktree add" will give the .git file of submodule the right path
> automatically, so you don't touch that file.
> And it creates extra folder "worktree" which store some necessary data for
> using
Igor Djordjevic於 2017年6月22日星期四 UTC+8上午6時39分33秒寫道:
>
> On Wednesday, June 21, 2017 at 10:33:37 PM UTC+2, Igor Djordjevic wrote:
> Hmm, it may be worth noting that working with submodules like this, where
> each one points to _exactly the same repository_ (and not being a clone of
> it), could
On Wednesday, June 21, 2017 at 10:33:37 PM UTC+2, Igor Djordjevic wrote:
>
> Hi Yue,
>
> On Wednesday, June 21, 2017 at 3:18:09 AM UTC+2, yueli...@gmail.com wrote:
>>
>> After some tests, I got a better way to do that: Just use git worktree
>> feature.
>>
>> Here is an example:
>>
>> Suppose you
Hi Yue,
On Wednesday, June 21, 2017 at 3:18:09 AM UTC+2, yueli...@gmail.com wrote:
>
> After some tests, I got a better way to do that: Just use git worktree
> feature.
>
> Here is an example:
>
> Suppose you have 2 (or more) projects, and they use a library_XYZ
> submodule:
>
After some tests, I got a better way to do that: Just use git worktree
feature.
Here is an example:
Suppose you have 2 (or more) projects, and they use a library_XYZ submodule:
/home/projects/project1/library_XYZ
/home/projects/project2/library_XYZ
Then, you just need to do these:
1. Delete
yueli...@gmail.com於 2017年6月17日星期六 UTC+8下午5時20分31秒寫道:
>
> rough steps:
>
> 0. suppose there are A and B branch in TheSubmodule repo, A is used by
> ProjectA, and B is used by ProjectB
> 1. move Projects/ProjectA/.git/modules/TheSubmodule to a common folder,
> say Projects/Common/TheSubmodule.
>
Stefan Klein於 2017年6月15日星期四 UTC+8上午12時28分16秒寫道:
>
> Hi,
>
> i do have multiple projects which share the same submodules.
> Each project might point to a different commit of a given submodule, but
> the submodules are exactly the same.
> No problem with this so far.
> It just bothers me that