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?

  • Detached HEAD Issue in Android Studio
  • Run Inspections offline (from Jenkins) Android Studio 1.1 vs 1.5
  • Why build and libs folders in Android project can't be commited or pushed?
  • Android Studio Git Push Rejected
  • Strange xml error: Incorrect line ending
  • 'Android Pre Compiler' error 'Path must include project and resource name'
  • How can you git pull only the current branch?
  • Git Extensions - Differences between Personal Repository and Central repository
  • How can I check out a particular version of one file in Git?
  • Git Cloning a Sub-Directory in a Repository
  • How do I get git to resolve merge conflicts by putting “ours first, then theirs”
  • Xcode 5 and shared Schemes
  • 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.