I have a maven project in NB 25.

At some point I created a local git repo for it (i.e. .git dir in the
project directory). I used NB to create the repo.

Then, I know I created a tar file of the whole thing, and went to another
computer to do some work on it, then, later I brought it back.

When I returned, I mv'd my original project to a new folder, project.old.

So, I fired up NB, and worked on my project for some days and poking
around, I realized that in the current project folder, the .git directory
is gone.

This is not a crisis, no real history in it.

However, NB is convinced that the project is still under VCS.

I've closed the project, restarted NB. It's showing file diffs and changes
and such.

Mind, I have not tried any actual git commands.

There seems to be no way to ask NB where it thinks the .git repo that it's
using is located.

Even more curious, in my project folder, I decided to try just making a new
.git folder via git init.

And, of all things, I get:

Initialized empty Git repository in /path/to/myprojects/project.old/.git/

Which is extra odd, as it created a local .git folder (and I don't have any
ENV vars set or anything, I'm not that git sophisticated.)

And, NB behavior hasn't changed.

Anyway, it's a confusing incongruity.

Any ideas on how to sync this back up?

At this point I'm tempted to rename the project directory, rename the
project in maven, just to try and remove any connection to the old project.

Thanks,

Regards,

Will Hartung

Reply via email to