I’m facing an unexpected problem that is messing with my daily agenda, and I’m already tight with time. The project I’m working got detached from remote git repository. I’m not sure how did this happened, could be that I have mistakenly deleted while on Git Repository Exploring in Eclipse.
Anyways, I have things to push, so I need somehow to reattach the project to the remote repository without losing local changes (and getting back all the git goodies like revision, branches etc).
I would like to avoid pulling again from the Git, and than do compare with my current work to get the changes, so any help is appreciated.
Have a look at your remotes list in eclipse, probably the remote was deleted and you just need to add it again. Once you add it, you will get your remote branches back. After you add your remote eclipse will do a fetch for you, so you don´t need to pull.