I'm setting up a NAS server with Git for the first time, so please forgive the noobish questions (it also means I am super thankful for any detailed explanations you can give me, because I am kind of a fish out of water on this).
Here's what I've done so far:
- List item
- Set up NAS
- Installed git, following these instructions: http://www.wonko.de/2010/04/set-up-git-on-synology-nas.html (I made it until the end of step 5)
- Have git working on my local computer (did
git initand initial commit)
Right now, I'm trying to figure out how to do step 6 of that guide (http://www.wonko.de/2010/04/set-up-git-on-synology-nas.html) so that I can use
git clone and
git push to send commits of my local to my NAS.
I read the comments below that post, and have tried the following:
Created a file called
environmentsaved in my local home folder:
.ssh/environmentwith the following typed in there:
Logged in to my NAS using
ssh://root@ipaddresstonas, and typed:
ln -s /opt/bin/git*
However, I keep getting these results:
Terminal on my local machine:
$ git remote -v nas ssh://email@example.com/volume1/path/to/test (fetch) nas ssh://firstname.lastname@example.org/volume1/path/to/test (push) $ git push nas master email@example.com's password: sh: git-receive-pack: not found fatal: The remote end hung up unexpectedly
And when I try typing
$PATH in my local machine:
$ $PATH -bash: /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/git/bin: No such file or directory
On my NAS:
nas> cd /volume1/path/to/test nas> ls test.git nas> $PATH -sh: /opt/bin:/opt/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/syno/bin: not found
Also, just a note: I'm using Synology DS212J, which I think uses "BusyBox" if that's any help.
I'm really confused on how to set up git to work with my NAS...how I can push to my NAS, how I can clone (or
svn checkout equivalent) onto another computer etc.