To create a Git repository:
- SSH into your server as root or admin.
$ ssh admin@diskstation
- Change to the directory you have for your Git Repositories.
admin@diskstation: cd /volume1/git/repo
- Create the folder to contain the repository.
admin@diskstation: mkdir project
- Create a bare git repository. It will be bare since there will be no project files checked out here.
cd project git --bare init
Once the repository is created, a Git client user can then use the repository with the address: ssh://username@diskstation/volume1/git/repo/project.