
# Only alphanumeric and period (.) are allowed This script does have error checking and some security features but if you are concerned later please delete or remove execution permissions later.Ĭheck the GIT_HOME setting in this script and edit if required before cutting and pasting cat >~gituser/git-shell-commands/git-create-repository &2 Usage\: git-create-repository \.git
Gitkraken could not connect to origin how to#
This guide shows you how to do it and how to use it. It uses an ability in git-shell to specify additional commands. Note: this uses fully supported features and should work through DSM upgrades and Git version updates. This guide will show you how to setup repositories remotely with one command. To create NewRepo.git it could be as simple as running ssh "git-create-repository NewRepo.git" on your local machine. Also I normally have admin disabled, as a security measure and only reenable when required (DSM Control Panel) so it was extra tedious. I was finding it annoying needing to use ssh to login to the Synology and run several commands so that I could create new repositories and do settings. Thank you notes regarding permissions are very important in current Synology builds (thanks and However the usability needed improving Thank you for this guide! It is extremely useful.

Add NAS as Remote for Local RepoĬreate repositories remotely using supported mechanism It seems to work without running this command, but I'm suspcicious that it might cause problems later. NOTE: I'm not entirely sure if git update-server-info must be run for each repo or just initially. change permissions while logged in as root.Ssh /volume1/homes/gituser/.ssh/id_rsa.pub /volume1/homes/gituser/.ssh/authorized_keys


Scp ~/.ssh/id_rsa.pub connect via SSH as root and rename id_rsa.pub to authorized_keys on NAS (or append if already exists, cat id_rsa.pub > authorized_keys) copy public rsa key from local computer to gituser account on server.

Gitkraken could not connect to origin install#
