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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T12:17:39+00:00 2026-05-25T12:17:39+00:00

I am trying to do a GIT clone (I am new to GIT) The

  • 0

I am trying to do a GIT clone (I am new to GIT)

The command I use is:

C:\GIT>git clone --bare \\NAS1\GIT\OptiTexRepo \\backupnas\backup\GIT

Inside the \BACKUPNAS during the run I get several folders created. When they end, I get an error in my CMD windows

Cloning into bare repository \\backupnas\backup\GIT...
fatal: '\optitexnas\GIT\OptiTexRepo' does not appear to be a git repository
fatal: The remote end hung up unexpectedly

And the folder on BACKUPNAS is deleted.

Running with –verbose does not add any new data to the screen.

What am I missing please?
What should the correct syntax be if I want to create a backup of my GITREPO?

  • The GITREPO is located on a shared folder in our NAS (Readynas 1100 by Netgear)
  • The server I run the command from has GIT installed and is a W2K3

EDIT:
It looks like the entire project is been copied, and at the end (after all the files are copied, I get the error message0 and than the entire directory is deleted again.

  • 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-25T12:17:40+00:00Added an answer on May 25, 2026 at 12:17 pm

    As long as OptiTexRepo is really a repository:

    Always use forward slashes for network paths when accessing them with msysgit:

    git clone --bare //NAS1/GIT/OptiTexRepo //backupnas/backup/GIT
    

    This should clone OptiTexRepo into your backupnas.

    Furthermore, in your comment on your question, you write that you have several repos present on NAS1 that you might back up. So it would be a good idea to give the clone a meaningful name:

    git clone --bare //NAS1/GIT/OptiTexRepo //backupnas/backup/GIT/OptiTexRepo.git
    

    Another point: just cloning will put the current state of OptiTexRepo to backupnas, but does not backup future states of the repo. The best way of backing up a git repo is working with it:

    • git clone //NAS1/Git/OptiTexRepo D:/OptiTex will create a working copy under D:/OptiTex
    • work and git commit in this repo (D:/OptiTex)
    • occasionally push your changes to the NAS using git push --mirror origin
    • Hey presto! Created a backup of D:/OptiTex on //NAS1/Git/OptiTexRepo
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to use git on windows to clone a remote repository. I can
I'm trying to use git to clone an svn repository with std layout (using
I want to clone a new project with a command like git clone git@some_link.com:some_word/project_name.git
I'm trying to run git clone and am receiving the following error: fatal: Out
I am new to Git and I'm trying to get a subfolder uploaded into
When trying to clone ANY repository via https from github, we get: git clone
I'm new to Git, and I used a command like this to clone a
I am trying to run git from a different directory than I am in.
I'm a Git user trying to use Mercurial. Here's what happened: I did a
I've been trying to install Shoulda script/plugin install git://github.com/thoughtbot/shoulda.git but all I get is:

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.