Skip to content

Instantly share code, notes, and snippets.



Last active Sep 29, 2020
What would you like to do?
run simple git server on synology nas
# ./ <repo-name>
cd /volume1/homes/<username>/git-repos
git --bare init "$1".git
cd "$1".git
git update-server-info

after setting up ssh/passwordless login, install git server through Synology package manager.

SSH into Synology server. Run:

$ pwd
mkdir git-repos
cd git-repos
git --bare init <repo-name>.git
cd <repo-name>.git
git update-server-info

on client, locally clone the new empty repo:

git clone ssh://<username>@<synology-ip-address>/var/services/homes/<username>/git-repos/<repo-name>.git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.