git/list[1] front-page[2] threads[3] people[4] search[5] about
 

RE: Clone repository computer A to remote B doenst work

From
Randall S. Becker <rsbecker@nexbridge.com>
Date
Nov 25, 2017, 15:52 UTC
Message-ID
<003d01d36605$69bfe650$3d3fb2f0$@nexbridge.com>
In-Reply-To
<CAOeKBwpUDD_C5mQ54Aa2pj72aVkp9F2rkmGrSVMC81d6gJQRew@mail.gmail.com>
On November 25, 2017 4:31 AM Roberto Garcia wrote:
>I'm trying clone in windows a git repository to other remote machine (NAS Linux based).
>I have installed git for windows but i didn't installed nothing in the other remote machine (NAS Linux based).
You have two choices:
1. Install git on your LINYX machine, which you probably can't do if it's a pure NAS outside of your control.
2. Run everything off Windows as git in local mode. Mount the NAS as a windows drive. In a command terminal:
	a. cd X:\Share\repo.git #you'll have to mkdir this
	b. git init --bare #creates a new empty repo on your NAS
	c. cd C:\MyStuff #where you keep your clones
	d. git clone -l X:\Share\repo.git #clone the bare repository
	e. Start adding stuff (git add, git commit)
	f. git push   # to move commits to your NAS repo.
Then you have your relationship and can push/pull from your NAS entirely from within Windows executing objects. Change directories and drive letters accordingly. -l means local, so git won't be starting any git-upload-pack processes remotely. Variations on this should work.
Good luck.
Randall
Previous: Roberto GarciaNext: Johannes Schindelin
Message 2 of 4 in “Clone repository computer A to remote B doenst work”
  1. Roberto GarciaNov 25, 2017
  2. Randall S. BeckerNov 25, 2017
  3. Johannes SchindelinNov 25, 2017
  4. Roberto GarciaNov 26, 2017

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.