git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* Clone repository computer A to remote B doenst work
@ 2017-11-25  9:31 Roberto Garcia
  2017-11-25 15:52 ` Randall S. Becker
  2017-11-25 22:38 ` Johannes Schindelin
  0 siblings, 2 replies; 4+ messages in thread
From: Roberto Garcia @ 2017-11-25  9:31 UTC (permalink / raw)
  To: git

Hello all,

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).

I open git-bash and I try do this: "git clone
user@IP:/directory/where/i/want/clone".
This doesnt work because I obtain "sh: git-upload-pack: command not found".

I search in google and I found a possible solution, I need add -u
/path/to/git-upload-pack.
When i try again writing git clone -u
/c/Git/mingw64/bin/git-upload-pack
user@IP:/directory/where/i/want/clone
After I Write the password I obtain sh:
C:/Git/mingw64/bin/git-upload-pack: No such file or directory. But it
exists! (in my local computer windows)

I'm newbie with Git and Unix system. What can i do ?
Thanks a lot!

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: Clone repository computer A to remote B doenst work
  2017-11-25  9:31 Clone repository computer A to remote B doenst work Roberto Garcia
@ 2017-11-25 15:52 ` Randall S. Becker
  2017-11-25 22:38 ` Johannes Schindelin
  1 sibling, 0 replies; 4+ messages in thread
From: Randall S. Becker @ 2017-11-25 15:52 UTC (permalink / raw)
  To: 'Roberto Garcia', git

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Clone repository computer A to remote B doenst work
  2017-11-25  9:31 Clone repository computer A to remote B doenst work Roberto Garcia
  2017-11-25 15:52 ` Randall S. Becker
@ 2017-11-25 22:38 ` Johannes Schindelin
  2017-11-26  8:38   ` Roberto Garcia
  1 sibling, 1 reply; 4+ messages in thread
From: Johannes Schindelin @ 2017-11-25 22:38 UTC (permalink / raw)
  To: Roberto Garcia; +Cc: git

Hi Roberto,

On Sat, 25 Nov 2017, 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 need a Git on the remote side. Otherwise Git will not be able to clone
from there.

Ciao,
Johannes

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Clone repository computer A to remote B doenst work
  2017-11-25 22:38 ` Johannes Schindelin
@ 2017-11-26  8:38   ` Roberto Garcia
  0 siblings, 0 replies; 4+ messages in thread
From: Roberto Garcia @ 2017-11-26  8:38 UTC (permalink / raw)
  To: Johannes Schindelin; +Cc: git

Thanks you very much:
I have QNAP NAS,
Finally I have installed QGit (from forum QNAP because you can't find
in app center) from here:
https://forum.qnap.com/viewtopic.php?f=320&t=109649
I used SSH for create a bare repository in the server side.
Once it was created i went to the local machine and i wrote:
git clone user@ip:/my/path/in/the/server/git
I put my files, add and commit to the new git repository created by git clone.
Now i can use git push to commit the changes into the server

Thanks you very much!!!!!!!!!!!
Regards,
Roberto


2017-11-25 23:38 GMT+01:00 Johannes Schindelin <Johannes.Schindelin@gmx.de>:
> Hi Roberto,
>
> On Sat, 25 Nov 2017, 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 need a Git on the remote side. Otherwise Git will not be able to clone
> from there.
>
> Ciao,
> Johannes

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-11-26  8:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-25  9:31 Clone repository computer A to remote B doenst work Roberto Garcia
2017-11-25 15:52 ` Randall S. Becker
2017-11-25 22:38 ` Johannes Schindelin
2017-11-26  8:38   ` Roberto Garcia

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).