I've been developing an Android Wear project ("RefWatch") using Android Studio for about 18 months. I noticed about 6 months in that the git repositories for the project are actually in two directories:
/Users/<name>/AndroidStudioProjects/RefWatch/mobile
(the mobile module)
AND
/Users/<name>/AndroidStudioProjects/RefWatch
(the wear module and everything else)
I don't know whether this was an accident when I created the Android Studio Project, but Android Studio seems to do an ok job of commits/checkouts to the separate repositories.
Where I run into trouble is:
- I want to branch my code; this always seems to create a detached HEAD
- If I want to use command line commands I seem to have to browse each repository separately
- I want to push everything to BitBucket or some other remote
So, questions:
- Is this "two .git" directories actually normal or ok? Is it designed this way?
- Is there a way of merging the two .git repositories to simplify my life?