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

  • Home
  • SEARCH
  • 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 668483
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T00:02:41+00:00 2026-05-14T00:02:41+00:00

We were sharing a GIT repository via file-sharing system (smb://) and got it badly

  • 0

We were sharing a GIT repository via file-sharing system (smb://) and got it badly corrupted (a power cut meanwhile the post-send :P). Being new to GIT, trying to fix it I made it even worse and I lost all the refs (left with the object folder).

Since the incident I haven’t had the time to look at the problem and have just been keeping committing to my local clone.

So my question is : Is there a way to copy the local repository back to the location of the old repository and make it a shared repository in order to keep some track of previous the history ? That’s all I could figure out (I’m still a git-noob), any other solutions are more than welcome !

Thanks in advance !

  • 1 1 Answer
  • 2 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-14T00:02:42+00:00Added an answer on May 14, 2026 at 12:02 am

    From the question Is it safe to use a copied repo, you could simply:

    • clone --bare your local repo on your local machine
    • copy that bare repo on the share

    That way you get back a pristine bare repo able to accept all your push operations.

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

Sidebar

Related Questions

I've got one repo which contains some utility functions in a single file .
I'm working on a project: Just me, no collaboration/source code sharing I'm already backing
Accustomed to SVN, I always do an 'update' before sharing any changes, so before
I know that sharing a single context between threads is bad news. I know
I seem to be sharing a lot of code with coauthors these days. Many
Is there any sharing link for facebook that only requires a textual status, not
I am sharing some memory between C++ and PHP At the PHP end I
I'm sharing an image from my application by starting Intent.ACTION_SEND with image msg.setType(image/png) using
Lync 2010 allows sharing of PowerPoint presentations and doing whiteboarding on them. But its
Intro I've used SVN before, back when I was working as a solo programmer,

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.