Before jumping to answer, please read this mess carefully!
Problem:
I used:
git push --mirror
and it deleted all tags in in 1.x series from Github!
Current Situation:
That means data is present in remote...
What might work:
If I can clone Github repo with all logs, including logs about deleted "commits" locally, then my "local" will have deleted commits also. After that it may be git reflog/rebase/reset exercise.
I assume since remote git is a complete repo itself and its showing commits by SHA1 hashes, if I can run git reflog/rebase/reset on "remote" things may work in theory.
Please note that I am looking for pure git way. Manually we can download "tags" (zips), restore from SVN (we were using SVN during 1.x)
Please let me know your suggestions/workarounds.
I learned hard way that data in git can be lost.
There is no answer to my question. I had to do some manual work (copying old tags form old svn archives + downloading some zipped version and tagging them, etc)
So, if you do:
git push --mirror
to a remote server Remote repo will be a complete mirror of your local repo. There is no way to undo this if remote repo has so other clones/backup/mirror etc.
Of-course what I did (accidentally) was non-standard way so git is not responsible for it...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With