Skip to content

Instantly share code, notes, and snippets.

@teocci
Created April 28, 2016 07:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save teocci/fb20e613bcbd9a808e504c8cbe90d943 to your computer and use it in GitHub Desktop.
Save teocci/fb20e613bcbd9a808e504c8cbe90d943 to your computer and use it in GitHub Desktop.
Proces to migrate a Forket Project from Eclipse to Android Studio and then update the git repo with the new Android Studio repo.
Move to the new repo Directory
cd newrepo
Add all the files to be commited
git --git-dir=/path/to/my/oldrepo/.git/ --work-tree=/path/to/my/newrepo/ add .
Commit the changes
git --git-dir=/path/to/my/oldrepo/.git/ --work-tree=/path/to/my/newrepo/ commit -a -m "This is the Android Studio version"
Add the remote origin
git --git-dir=/home/teocci/AndroidSRC/Camtest0110/.git --work-tree=/home/teocci/AndroidSRC/Camtest01101/ remote add origin https://github.com/your/project.git
Push the changes
git --git-dir=/home/teocci/AndroidSRC/Camtest0110/.git --work-tree=/home/teocci/AndroidSRC/Camtest01101/ git push -u origin master
Now you can delete the directory and clone again the new project as a master
git clone https://github.com/your/project.git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment