Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8676501
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T20:12:48+00:00 2026-06-12T20:12:48+00:00

Before jumping to answer, please read this mess carefully! Problem: I am working on

  • 0

Before jumping to answer, please read this mess carefully!

Problem:

  1. I am working on a project (using git for version control).
  2. I created tag v2.x and pushed it to my remote origin.
  3. This remote origin is a private mirror which was do NOT have tags in 1.x series. Reason – we started coding from scratch in v2.x, so 1.x is maintained for historical reason only.
  4. Unaware of this, I added another remote to our public github repo.
  5. I thought lets mirror latest tags and commits to github (as I am the only developer – I did not bother to merge!)

I used:

git push --mirror

and it deleted all tags in in 1.x series from Github!

Current Situation:

  • I googled a lot, read git manuals. Tried running git reflog/reset/rebase but not able to restore anything.
  • My local env. do not have have commits related to tag 1.x since we started from scratch in 2.x
  • Even I fail to recover anything so far, I see remote commits on Github. e.g.
    https://github.com/rtCamp/buddypress-media/commit/4614fcdacfbe21dae88e50e66707ef57b786ee37

That means data is present in remote…

What might work:

  1. 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.

  2. 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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T20:12:49+00:00Added an answer on June 12, 2026 at 8:12 pm

    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:

    1. Intialize a git repo locally, add some files into it and commit it.
    2. Then change remote origin and then 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…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Before jumping on me, please read my question carefully :D. I know there are
Thought Id ask here before jumping into a problem on the Blackberry Playbook (Adobe
Looking to see if this chart is possible with HighCharts before jumping aboard any
before I start I want to point out that I tagged this question as
Before, I was using VS 2008 command prompt and when I do clrver I
Initially I was looking for an answer to show/hide a page jumping issue. Having
I have an interesting scenario and the answer isn't jumping out at me. I've
Before jumping in and rolling my own, I thought I'd ask in here first.
I'd like to learn some Javascript before jumping into a framework like jQuery or
I'm using the relatively immature Joose Javascript ORM plugin ( project page ) to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.