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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T10:28:25+00:00 2026-05-20T10:28:25+00:00

I tried to set up a bare git repo for backup, as proposed in

  • 0

I tried to set up a bare git repo for backup, as proposed in nes1983‘s reply to this question.

I am using git on cygwin. My local repository is on /cygdrive/C/my-project. When I set up my backup repository on the same disk, everything works fine.

However, if I set up the bare repo on a network drive /cygdrive/H/backup-repo, I get the following error:

bash-4.1$ git push backup
Counting objects: 101, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (85/85), done.
Writing objects: 100% (101/101), 62.60 KiB, done.
Total 101 (delta 17), reused 0 (delta 0)
error: unpack should have generated 1f2087f7984f90b46a9cf90990d3399debedd3bc, but I can't find it!
To /cygdrive/H/backup-repo
 ! [remote rejected] master -> master (bad pack)
error: failed to push some refs to '/cygdrive/H/backup-repo'

Are there any known limitations of git with Windows network drives, and are there any workarounds?

EDIT: I just found out: If I try calling the command git push backup again, it succeeds at the second or third try. However, calling the command again seems to be a bad solution, as I guess my repository might be corrupted when I get the message failed to push some refs. Any ideas what’s happening here?

  • 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-20T10:28:26+00:00Added an answer on May 20, 2026 at 10:28 am

    I’ve had problems trying to push to repositories over the network using Cygwin. Pulling has always worked, so I’ve tended to use that as a workaround.

    If your workflow won’t support that, you might find that setting up a git server allows you to get things working — Gerrit works on Windows.

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

Sidebar

Related Questions

I want to achieve this using html and css: I have tried to set
So this is how I set up my project: git init --bare Later I
I tried to set the usergent using Inet1.Execute , GET, Referer: yahoo.com & vbCrLf
I tried to set up my togglebutton properties layout using style.xml. Here's my code:
I’m using a JPanel to add JComponents on and I tried to set the
I have configured git so that I can push my local dev-repository to my
I'm attempting to put a bare git repository on a ubuntu server running on
I currently have Git setup with a central bare repository which is accessed by
I have a repository set up on a server running Git, the repository has
EDIT The bare-bones version of this question is, if I have some object o

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.