Such as I create A new solution on the machine A Test, there is A project under the solution Test. Bin.
Then git clone http://github.com/who/lib.git a project source code into the Lib directory and added to the solution.
Test. Bin cited Lib library.
Now the directory structure is like this:
The Test
Test. Bin
Test. Bin. The csproj
Lib
Lib. Csproj
Test. The SLNS
detected
The whole project released to making, the address is http://github.com/me/test.git
On another machine B, through git clone http://github.com/me/test.git for all the source code to the local.
Then I want to ask, one day the Lib library updated, the author of how to get updates on my machine B?
Git submodule is not convenient to use, but also very troublesome, is there a better solution.
Like PHP Composer Composer in the project root directory to define a file. The json, which defines the solution reference in library, from where to download.
On any machine, as long as from clone test. The git, perform composer and install, it will automatically download library source code, in the vendor directory.
The vender list need contain no test. Git, when Lib library for updates, directly composer update.
CodePudding user response:
Git seems to be no other wayLet's use the git submodule
Write a batch
CodePudding user response:
The