Created
April 28, 2016 07:11
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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