Answer the question
In order to leave comments, you need to log in
How to roll back a GIT project to the point at which branches were created?
I completed the project I had been working on for a year, before launching it into production I decided to create a dev branch. But it turned out that I didn’t even have a master branch, so I had to create it too. I created them, merged them a couple of times, pushed them to gitlab, and already when deploying to the test server, I found out that this is the version for the summer of last year 0_o Apparently this is some kind of bug due to the fact that I didn’t have branches before ... How do I revert to the version that was before the branches were created?
Answer the question
In order to leave comments, you need to log in
You can switch across commits. Look in the history for the commit you need and switch to it.
https://stackoverflow.com/questions/16539779/how-t...
/me smashed his face with a facepalm.
fiter data you most likely lost. study git reflog, git fsck, but before that, stupidly archive the directory with the project and the .git subdirectory and stock up on bandages with brilliant green, otherwise, as if your hand was not torn off during experiments or something worse ..
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question