I have a big iOS app that include messaging functionality and many other stuff. Now I want to create another app with only messages. How can I set git to track common files? I think submodules can help me, but I have already git repository for 1st app and continue support it, but I don't want add as submodule the whole app in the 2nd. I want to avoid same changes in the same files during development.
I found this https://help.github.com/articles/splitting-a-subfolder-out-into-a-new-repository/ It can create new repo from subfolder, but actually i have different folders and is it possible to track without changing 1st app repo?