GIT clone - failure and deleted the target folder
-
29-10-2019 - |
Question
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.
No correct solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow