Renaming Eclipse project didn't rename folder in local git repo [message #1185172] |
Wed, 13 November 2013 18:32  |
Eclipse User |
|
|
|
I have a Maven project that I shared with a git repo. At one point I decided I needed to rename the project and artifact. I renamed it in Eclipse and it looked fine. The project name changed, and it changed the artifact name. However, it didn't change the folder in my local git repo. I couldn't do a "commit" because it didn't think there were any changes to commit.
I finally resorted to semi-manual surgery on the local git repo, by doing "git mv oldname newname". This fixed the name in my local git repo and gave me changes to commit, but this now messed up my Eclipse project. At this point, I just deleted the project (not the contents) and reimported projects from the repo, which recreated the project with the correct name.
Is there a better way I could have done this?
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04350 seconds