{"thread":{"id":"47315","subject":"Clone repository computer A to remote B doenst work","startedAt":"2017-11-25T09:31:21Z","lastAt":"2017-11-26T08:38:47Z","messageCount":4,"participants":["Roberto Garcia","Randall S. Becker","Johannes Schindelin"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"333473","messageId":"CAOeKBwpUDD_C5mQ54Aa2pj72aVkp9F2rkmGrSVMC81d6gJQRew@mail.gmail.com","threadId":"47315","inReplyTo":null,"subject":"Clone repository computer A to remote B doenst work","fromName":"Roberto Garcia","fromEmail":"eltitorober1985@gmail.com","sentAt":"2017-11-25T09:31:14Z","receivedAt":"2017-11-25T09:31:21Z","isPatch":false,"sender":{"key":"eltitorober1985@gmail.com","avatar":null},"body":"Hello all,\n\nI'm trying clone in windows a git repository to other remote machine\n(NAS Linux based).\nI have installed git for windows but i didn't installed nothing in the\nother remote machine (NAS Linux based).\n\nI open git-bash and I try do this: \"git clone\nuser@IP:/directory/where/i/want/clone\".\nThis doesnt work because I obtain \"sh: git-upload-pack: command not found\".\n\nI search in google and I found a possible solution, I need add -u\n/path/to/git-upload-pack.\nWhen i try again writing git clone -u\n/c/Git/mingw64/bin/git-upload-pack\nuser@IP:/directory/where/i/want/clone\nAfter I Write the password I obtain sh:\nC:/Git/mingw64/bin/git-upload-pack: No such file or directory. But it\nexists! (in my local computer windows)\n\nI'm newbie with Git and Unix system. What can i do ?\nThanks a lot!\n"},{"id":"333475","messageId":"003d01d36605$69bfe650$3d3fb2f0$@nexbridge.com","threadId":"47315","inReplyTo":"CAOeKBwpUDD_C5mQ54Aa2pj72aVkp9F2rkmGrSVMC81d6gJQRew@mail.gmail.com","subject":"RE: Clone repository computer A to remote B doenst work","fromName":"Randall S. Becker","fromEmail":"rsbecker@nexbridge.com","sentAt":"2017-11-25T15:52:30Z","receivedAt":"2017-11-25T15:52:43Z","isPatch":false,"sender":{"key":"randall.becker@nexbridge.ca","avatar":"https://avatars.githubusercontent.com/u/28956764?v=4"},"body":"On November 25, 2017 4:31 AM Roberto Garcia wrote:\n\n>I'm trying clone in windows a git repository to other remote machine (NAS Linux based).\n>I have installed git for windows but i didn't installed nothing in the other remote machine (NAS Linux based).\n\nYou have two choices:\n1. Install git on your LINYX machine, which you probably can't do if it's a pure NAS outside of your control.\n2. Run everything off Windows as git in local mode. Mount the NAS as a windows drive. In a command terminal:\n\ta. cd X:\\Share\\repo.git #you'll have to mkdir this\n\tb. git init --bare #creates a new empty repo on your NAS\n\tc. cd C:\\MyStuff #where you keep your clones\n\td. git clone -l X:\\Share\\repo.git #clone the bare repository\n\te. Start adding stuff (git add, git commit)\n\tf. git push   # to move commits to your NAS repo.\n\nThen 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.\n\nGood luck.\n\nRandall\n\n"},{"id":"333494","messageId":"alpine.DEB.2.21.1.1711252338050.6482@virtualbox","threadId":"47315","inReplyTo":"CAOeKBwpUDD_C5mQ54Aa2pj72aVkp9F2rkmGrSVMC81d6gJQRew@mail.gmail.com","subject":"Re: Clone repository computer A to remote B doenst work","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2017-11-25T22:38:42Z","receivedAt":"2017-11-25T22:39:24Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi Roberto,\n\nOn Sat, 25 Nov 2017, Roberto Garcia wrote:\n\n> I'm trying clone in windows a git repository to other remote machine\n> (NAS Linux based).\n> I have installed git for windows but i didn't installed nothing in the\n> other remote machine (NAS Linux based).\n\nYou need a Git on the remote side. Otherwise Git will not be able to clone\nfrom there.\n\nCiao,\nJohannes\n"},{"id":"333523","messageId":"CAOeKBwprpzGYDjjgcaZwmuG4DXiWB-kHn+BekDTD18qSgXWpUg@mail.gmail.com","threadId":"47315","inReplyTo":"alpine.DEB.2.21.1.1711252338050.6482@virtualbox","subject":"Re: Clone repository computer A to remote B doenst work","fromName":"Roberto Garcia","fromEmail":"eltitorober1985@gmail.com","sentAt":"2017-11-26T08:38:41Z","receivedAt":"2017-11-26T08:38:47Z","isPatch":false,"sender":{"key":"eltitorober1985@gmail.com","avatar":null},"body":"Thanks you very much:\nI have QNAP NAS,\nFinally I have installed QGit (from forum QNAP because you can't find\nin app center) from here:\nhttps://forum.qnap.com/viewtopic.php?f=320&t=109649\nI used SSH for create a bare repository in the server side.\nOnce it was created i went to the local machine and i wrote:\ngit clone user@ip:/my/path/in/the/server/git\nI put my files, add and commit to the new git repository created by git clone.\nNow i can use git push to commit the changes into the server\n\nThanks you very much!!!!!!!!!!!\nRegards,\nRoberto\n\n\n2017-11-25 23:38 GMT+01:00 Johannes Schindelin <Johannes.Schindelin@gmx.de>:\n> Hi Roberto,\n>\n> On Sat, 25 Nov 2017, Roberto Garcia wrote:\n>\n>> I'm trying clone in windows a git repository to other remote machine\n>> (NAS Linux based).\n>> I have installed git for windows but i didn't installed nothing in the\n>> other remote machine (NAS Linux based).\n>\n> You need a Git on the remote side. Otherwise Git will not be able to clone\n> from there.\n>\n> Ciao,\n> Johannes\n"}]}