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 4073404
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T17:00:59+00:00 2026-05-20T17:00:59+00:00

I’m not entirely sure what happened, but for some reason my git repository’s master

  • 0

I’m not entirely sure what happened, but for some reason my git repository’s master ref file is now empty. We’re hosting the repository on Dropbox, so maybe it has to do with that..but now I can’t pull from it. It says this:

Your configuration specifies to merge with the ref 'master' from the remote, but no such ref was fetched.

Dropbox keeps versions of files, so if I go back to the previous version of ‘master’ it says:

fatal: object 2d154f82e59a4156a5d3ea04a0617c243ae6dc3a is corrupted
fatal: The remote end hung up unexpectedly

How do I recover from this?

  • 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-05-20T17:01:00+00:00Added an answer on May 20, 2026 at 5:01 pm

    Sigh.

    I like Dropbox, but I would never recommend it for “hosting” Git repositories. Its synchronization works well enough for single-file documents, but it does not come close to providing the distributed/remote filesystem semantics that would be required for safe hosting of a Git repository.

    Hopefully you are just “hosting” a bare Git repository on Dropbox. If so, you should be able to cobble together the commits and references from your non-bare (working) repositories. It should also be possible to manually recover your existing repository, but you will likely end up needing to copy objects from your other repositories anyway, so you might as well do it the following “high level” way (instead of going “low level” and dealing with copying objects from other repositories (or copying pack files and unpacking parts of them)).

    Start by making an independent clone of one of your working directories.

    git clone file://path/to/myrepo /path/to/myrepo-recovery-work
    

    Import the refs and objects from your other working repositories.

    # If you have network access to the other repositories:
    cd /path/to/myrepo-recovery-work
    git remote add other1 user@machine:path/to/other/working-repo-1
    git remote add other2 ssh://user@machine/path/to/other/working-repo-2
    # etc.
    git fetch --all
    
    
    # If you do not have network access:
    cd /path/to/other/working-repo-1 &&  # on machine with working-repo-1
      git bundle create /path/to/other1.gitbundle --all HEAD
    cd /path/to/other/working-repo-2 &&  # on machine with working-repo-2
      git bundle create /path/to/other2.gitbundle --all HEAD
    # etc.
    # Transfer the bundle files to the machine that has "myrepo-recovery-work"
    # (Dropbox is OK to copy the bundles, they are just single files),
    # then on that machine:
    cd /path/to/myrepo-recovery-work
    git remote add other1 /path/to/transferred/other1.gitbundle
    git remote add other2 /path/to/transferred/other2.gitbundle
    # etc.
    git fetch --all
    

    Then, look through all the branches on your new remotes and determine which branches should point to which commits for your rebuilt central repository.

    git log --oneline --graph --decorate --abbrev-commit --all
    # In addition to looking at the history graph, you might need to examine
    # the content of certain commits. Just check them out as a detached HEADs.
    git branch recovered/maintenance decafbad
    git branch recovered/master cafebabe
    git branch recovered/development deadbeef
    git branch recovered/bug-1234 8badf00d
    

    The create and push your recovered branches (and tags) to a new bare repository.

    git init --bare /path/to/new-central-bare-repo.git # or real Git hosting service!
    git remote add new /path/to/new-central-bare-repo.git
    git push --tags new 'refs/heads/recovered/*:refs/heads/*'
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm not entirely sure how I managed to jack this up. http://pretty-senshi.com If you
I have just tried to save a simple *.rtf file with some websites and
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
I want to count how many characters a certain string has in PHP, but
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a jquery bug and I've been looking for hours now, I can't
this is what i have right now Drawing an RSS feed into the php,
I want use html5's new tag to play a wav file (currently only supported
In my XML file chapters tag has more chapter tag.i need to display chapters

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.