git - Sharing the same repository between two projects using SourceTree -


i'm trying find out if it's possible share same repository between 2 projects git/sourcetree.

i have 2 sites own repos, both have plugins folder. currently, changes apply 1 plugin, have same plugin on other site.

i've created 3rd repo plugins (i.e. plugfolder1/2/3), i've not included file1.asp, file2.asp, .gitignore unique site.

is possible share plugins repo , pull content sitea/b plugins folders. way can make changes plugins in receptive site , commit changes plugins repo other sites pull.

i've looked submodule , subtree, when try add them via sourcetree, don't understand how i'm able pull content plugins repo site plugins folder.

i have never used complex stuff within git , don't want wrong.

current setup

**sitea** index.asp someotherfile.asp  > plugins     .gitignore     file1.asp     file2.asp     plugfolder1     plugfolder2     plugfolder3  **siteb** index.asp someotherbfile.asp  > plugins     .gitignore     file1.asp     file2.asp     plugfolder1     plugfolder2     plugfolder3 

expected setup

expected setup

you clone site* repository , put plugins folder on .gitignore file root of site*. this:

sitea   .gitignore   plugfolder1/     #cloned content plugin repo   plugfolder2/     #cloned content plugin repo   plugfolder3/     #cloned content plugin repo   file1   file2... 

on git ignore file (root of sitea)

plugfolder1/ plugfolder2/ plugfolder3/ #binaries, editor cache, etc... 

Comments

Popular posts from this blog

html - How to set bootstrap input responsive width? -

javascript - Highchart x and y axes data from json -

javascript - Get js console.log as python variable in QWebView pyqt -