How to clone an already existing GIT (bitbucket) repository and Import the Elcipse Project stored there.
1) clone the already existing GIT repository into Eclipse using the eGit support
2) import the Eclipse Project from the Cloned repository of step 1
(but, ofcourse this means you really have an already existing Eclipse project in the GIT repository)
Select "Click Clone" -- (note: you can also create a repository directly from here too)
Fill in the information including the URL to the git repository you made in bitbucket in the first steps
AN EXAMPLE
Here is the result of cloning on LEFT and on RIGHT you see the repository
|
Now you may want to import the project so you can work on the source code.
-
Click‘Windows’->‘Open Perspective’>‘Resource’
-
Click ‘File’>‘Import’>‘Git’>‘Projects from Git’>‘Existing local repository’>‘Select a Git Repository’ >
-
‘Import as General Project’> ‘Next’>‘Finish’
-
The code should then appear in your ‘Project Explorer’ window as a normal project
-
Now make changes to your file as you want
-
Look at ‘Git Staging’ view to see your changed files and Click ‘Commit and Push‘
|