Let's say my project directory on Github looks like this
\root
\Readme.md
\Android Project I need to Import
\app
\and so on
Whenever I try to import this Git repository into Android Studio, I can't access my files because the Android project is a sub-directory. I can't clone the project from the command line because then Android Studio refuses to open it.
Has anyone else experienced this or knows what to do? I've been stuck for a few hours on this.
Thanks in advance!
答案 0 :(得分:1)
检查/root
是否有.gitmodules
文件,这可能表示Android Project
是子模块。
然后Android Project
中不会包含任何.git
,因为历史记录将由父文件夹管理。