Git history persistence issues after switching from Eclipse to Android Studio

I want to migrate from Eclipse to Android Studio. The import works fine, but the file structure is different after import. I followed this steps and copied the .git directory in the root of the newly imported Android-Studio project. But git doesn't seem to recognize my "moved" source files, but lists them as deleted as well as new files.

Old structure:

MyApp
|--src
    |--com.myapp

      

New structure:

NewApp
|--_myApp
    |--src
       |--main
          |--java
             |--com.myapp

      

Is there anything I can tell git to find my files without manually executing them?

+3


source to share


1 answer


Thank you Sebastian Davans, this is really the missing link. After adding with git add -u, git recognized some of my files as renamed. I wonder why not all files are. Android Studio seems to be touching some files on import, which causes git to have trouble identifying them. So I copied the folder com.myapp

containing the java files from my eclipse folders to the Android Studio folder, replacing the imported files. It's the same with the directory res

. Than git to add. and git add -u



This looks like a problem.

+1


source







All Articles