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
dheeraj m於 2017年6月21日星期三 UTC+8下午6時16分39秒寫道:
>
> Hi,
> We would like to modify the .git/config file globally for entire project
> in the git repository.
> We would like this custom config get downloaded for all the users who does
> git clone or git pull for this project. Is there a way to do
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
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
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.
>
sowmya Nx於 2017年9月4日星期一 UTC+8下午4時35分27秒寫道:
>
> I am getting the below error when i try to clone the git repo
> fatal: protocol error: bad line length character: 2You
>
>
Is that repository public?
Could you give the full command line you used?
I wonder this is encoding issue.
Do you use
Greg Quintana於 2017年10月26日星期四 UTC+8上午11時20分25秒寫道:
>
> I have 2 projects which share a set of verilog source files. I want to
> keep these files identical in both projects. I think I need one repository
> which I will check out files for each project. Each project will also have
> files that
Martin於 2017年10月31日星期二 UTC+8下午2時43分18秒寫道:
>
> I did init --bare, so that won't be a problem.
> These two commands may be helpful for figuring out the issue?
> On git repository server machine:
>
> $ git log master
> fatal: ambiguous argument 'master': unknown revision or path not in the
>
One more thing:
If you can't find *.git folder* but *.git file*. Look into the content of
that .git file, it shows you where the .git folder is.
Yue Lin
--
You received this message because you are subscribed to the Google Groups "Git
for human beings" group.
To unsubscribe from this group