I would like to use the library in the project on which I am working, but I should practice some and With the speed up to rise though I have all my dependencies in the folder  ext / . 
  Want to work in its normal way under the MCDDR test CD test GIT Init GIT config core.sparsecheckout true echo c ++ / & gt; & Gt;    It just gives me the  in the root of I / test that is not particularly useful in the C ++ /  folder, I  ext /  folders and it will be given some names other than  c ++  because of changing the name of the folder, it can be seen as unalterable, which is undesirable because I can get it Simply copy the files from a zip. 
 If I am making a  ext /  directory  bridge  from the command  c ++  folder still in root Built, where the bridge was not ordered. 
Is there a way to drag a specific branch and copy it to the subdirectory of another name?
Here's how I will do it:
Suppose your main name There is a main project repository:
  # git init main cd main for completeness   Now, your dependency Add a folder and make it a sparse checkout:
  # directory mkdir ext cd ext # sparse checkout c ++ directory only git init git config Core sparsecheckout true echo c ++ / & gt; & Gt; .git / info / sparse-checkout # Add remote repository and check it git remote add -f sodium https://github.com/SodiumFRP/sodium.git git bridge sodium master   Again, there is a spacer checkout that you add as a subload:
  cd .. # Add # back to the main repository and submit Please submodule git submodule add ./ext git commit -m "added subfold"   I have tested with git 1.9.1.
If you want, you can add another directory such as a layout:
  main + ext # Multiple external Dependencies | + Sodium | + .git | + C ++ + src # Main project source files   
No comments:
Post a Comment