GIT: Two different repositories with one shared folder
I am currently creating a mobile app and I use Phonegap to deploy it to different platforms. We currently have created the app for the Android Platform and the iOS Platform. The Android one has a git repository, the iOS one does not (yet).
Both app versions have a www folder which are extremely similar (only the phonegap.js and plugin files differ). I wish to create a secondary GIT repository for iOS which shares the www folder from the original repository (Android), so I don’t have to copy-paste the files every time.
Is this possible?
- How do I push a new local branch to a remote Git repository and track it too?
- repo merge between different Android Repository
- Git pull with rebase causing excessive conflicts. How can I fix our workflow?
- How should I deal with “package 'xxx' is not available (for R version x.y.z)” warning?
- Identifying a tag belongs to which branch in git
- What is Repo and Why does Google use it?
One Solution collect form web for “GIT: Two different repositories with one shared folder”
Other than git submodule, you can also try git-subtree. You can also check Sharing code between projects with git subtree