Question

I have github set on Eclipse and have used it before. For some reason I am pushing the wrong project to my github account, which was my previous one and I have no idea why. I already tried to redo everything, but it is still pushing my old project.

Does anyone know why this is happening and how to fix this?

Thank you.

Was it helpful?

Solution

You can try and clone again your GitHub project, importing it (again) in a fresh Eclipse workspace, as show in this tutorial:

Copy the URL from Github and select in Eclipse from the menu the File → Import → Git → Projects from Git

Eclipse fills out most of the fields based on the URL in the clipboard. Enter your user and password to be able to push to Github.

Then a push should push your changes back to that same GitHub repo.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top