Answer the question
In order to leave comments, you need to log in
How to restore data in Git (under Eclipse) made after a commit?
Through eclipse, I tried to pour the local git onto the server.
I created a bunch of local repositories, tried to pour it out ... No luck, the experiment ended.
I began to remove the excess, and then everything was gone from the working project, which was in a separate local repository. All that's left is the .git folder and the .project file. No classes, no web info... nothing.
(There are suspicions that one of the reps was in the root of the folder where the working moment was stored and when it was deleted, eclipse wiped all the data of the current project).
When trying to sync from workspaces, new classes are visible in the tab, but sync fails.
When cloning the entire project, I only see the changes that were in the last commit. And the worst thing is that I need changes made after this commit.
Is it possible to save the changes, or is it only possible to get what was comicalized now?
Answer the question
In order to leave comments, you need to log in
Commits can be rolled back, for this git is needed.
In the console, you need to do git hist - you will see the history of commits, copy the desired id, and then do git reset id - roll back to the old version. But at the same time, with git push, it will swear, you need to roll back the changes on the server, for example, through the web interface. I generally write from memory and the commands may be different, look in Google.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question