How to move Egit repository and working directory

前端 未结 2 379
情话喂你
情话喂你 2020-12-17 00:02

I am new to Egit and created a new repository for a GWT project I\'m working on. Unfortunately, I let it create the repository under my Dropbox folder, and now I\'m regrett

2条回答
  •  借酒劲吻你
    2020-12-17 00:15

    When working with a local repository, you can just do the following:

    1. Close Eclipse
    2. Move the git repository on disk
    3. Reopen Eclipse
    4. Select File->Import... -> Git -> Projects from Git
    5. Select local repository and add the new repository location
    6. Select your project(s) to be added
    7. (Optional) Remove the old project references from your workspace.

    It may seem like a lot of steps, but it's actually very simple and less invasive than moving the repo and working copy separately.

提交回复
热议问题