1

I recently created new project ("FirstSimpleWebDataBase") and committed it to new repo.
Today I was working on my old project ( "BeamReinforcement" ) and accidentally pushed whole "firstSimpleWebDataBese" project into it's repository.

When I check repo at Github it's shows this:

enter image description here

Added by accident project is grey and I would like to delete it.
I checked history in EGit but there is not such commit so I can not reverse it from eclipse. How can I fix it ?

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250

1 Answers1

0

That gray folder is a gitlink (a special entry in the parent index)

What you can do locally is make sure that folder is removed:

  • make sure to move FirstSimpleWebDatabase outside the Git repo folder
  • type:

    git rm --cached FirstSimpleWebDatabase  # no trailing slash
    git add .
    git commit -m "record deletion of FirstSimpleWebDatabase gitlink"
    git push
    

Then you can go back to Egit and go on from there.

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250