Clone a remote Git repository locally so you can edit it in Eclipse (you can see your edits in Eclipse from SourceTree)
Install SourceTree and Eclipse
OS:Windows7 SourceTree:1.6.23.0 Eclipse:4.4.2
Open SourceTree and clone from the URL of the remote repository to the local environment
2-1. Add Git from "Open Perspective" 2-2. Select "Add an existing local Git repository" and specify the local repository cloned in step 1. 2-3. Change the perspective (Java this time), right-click in Package Explorer → select Import 2-4. Select "Select Import Source"-> "Git"-> "Project from Git" and click "Next (N)>" 2-5. After selecting "Existing Local Repository", click "Next (N)>" 2-6. The local repository added in step 2-2. Should be displayed. Select it and click "Next (N)>". 2-7. Import existing project (E) → Click "Next (N)>", check the "Project" you want to import, and click "Finish". The project will be added
When editing a file in a project with Eclipse etc., the edited file is displayed by selecting "File Status"-> "Working Copy" in SourceTree. When you reach that point, commit, push, etc. as appropriate.
Recommended Posts