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?

  • Error:Execution failed for task ':lib:compileReleaseAidl'. > Executor Singleton not started
  • Has no default translation and R is not being generated
  • multiple instances of android app - git project management best approach
  • Ignoring library project with Android lint on the command line
  • Compiling renderscript source code
  • Auto Version numbering your Android App using Git and Eclipse
  • What happens when I 'git pull --rebase origin development' from within a feature branch?
  • How do I tell github that I made all of the commits pushed from my laptop?
  • Git pushing into master failed…
  • Why is Commit Greyed-out in Eclipse's Egit
  • Adding a git commit message using vi on OS X
  • Etckeeper + git and remote server
  • 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

    Git Baby is a git and github fan, let's start git clone.