Using the DSM web interface:
- Install git from the package at http://www.synocommunity.com/
- Create a 'git' user account.
- Allow terminal (ssh) access.
See this guide for more details on the next bit:
ssh in as root
and set the following in: /etc/ssh/sshd_config
:
PermitUserEnvironment yes
Next, restart sshd (just reboot).
ssh in as the git
user and create this file: ~/.ssh/environment
with these contents:
PATH=/usr/local/git/bin/sbin:/bin:/usr/sbin:/usr/bin:/usr/syno/sbin:/usr/syno/bin:/usr/local/sbin:/usr/local/bin
ssh in to the NAS:
ssh git@synology.local
Create a bare repo:
mkdir ~/my-repo.git
cd ~/my-repo.git
git --bare init
TODO: should really change git user's shell to to git-shell now.
From your local git repo:
git remote add origin git@synology.local:my-repo.git
git push origin --all
Really nice effort