Can I have multiple Git repos from a single project folder?
6 points| circuitbreaker | 15 years ago
1) the main service engine (i.e. the Java code)
2) the web-files (i.e. the HTML, JSP, CSS, and JS files).
I'd like to maintain this all with Git but I'd like to have distinct repos for each component of the site. So, is there a way to have multiple repos from this single project folder? More specifically, is it possible to have multiple files from a single folder belong to different repos?
timtadh|15 years ago
If you are considering such a structure, ask your self: why? This is not a common structure (thus the lack of tool support), but your problem is common.
If you want to separate your files into two subdirectories as suggested, I recommend using a top level git repo to track all of it, and using git submodule for your engine:
If you don't know how git submodule works, read the man pages.circuitbreaker|15 years ago
shorbaji|15 years ago