[git-users] Re: multiple projects sharing submodules optimization?

2017-06-20 Thread yuelinho777
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

[git-users] Re: Want to modify .git/config file globally for entire project so that it gets changes for all people who does git pull or clone

2017-06-21 Thread yuelinho777
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

[git-users] Re: multiple projects sharing submodules optimization?

2017-06-21 Thread yuelinho777
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

[git-users] Re: multiple projects sharing submodules optimization?

2017-06-17 Thread yuelinho777
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

[git-users] Re: multiple projects sharing submodules optimization?

2017-06-17 Thread yuelinho777
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. >

[git-users] Re: Issue when cloning the git repo

2017-09-05 Thread yuelinho777
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

[git-users] Re: 2 projects share a set of files, how to set this up

2017-10-26 Thread yuelinho777
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

Re: [git-users] Why can't I push to a newly created repository?

2017-10-31 Thread yuelinho777
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 >

[git-users] Re: Where does git on windows store the repositories?

2017-10-26 Thread yuelinho777
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