rename git project directory name in eclipse

Since the menu action “refactor -> rename” for a java project in eclipse only updates the name tag in .project file. It is possible to rename the project root directory with the following 4 steps.

1. “refactor->rename” the project in eclipse with menu action to update the name tag in .project file.

2. Rename the project directory name in terminal/console in Linux with the following commands:

cd /home/user/git/repository/
git mv oldProjectName newProjectName

3. Commit and Push the change directly in eclipse with Git client

4. Remove the OldProject from your workspace (without delete the data from disk) and import newProject into workspace.



About yingding wang
i am looking forward to innovation in IT and Robotics

Comments are closed.

%d bloggers like this: