_ _ ____/__/_
/_)_(__(_) (__(__(_/_
.-/
(_/
The Scotty CLI is used to manage Git repositories remotely from the command line
- Synology Diskstation: This utility was originaly made to support a workflow that uses the Git Server Add-on for Synology's diskstation. Now there's no reason it shouldn't work for a vanilla remotely hosted Git Server; I'm just sayin'.
The NPM package requires that you have ssh installed as it depends on it heavily. It also depends on environment variables for your Git Server.
- Install the NPM package
$ npm install -g scotty-cli
- Add environment variables
DS_HOSTHost name or IP that your server can be accessed from the client machineDS_HOST_PORTHost port that your server can be access fromDS_PRIMARY_USERThe user that has read/write access to the git repos directoryDS_GIT_REPO_PATHThe path to the parent directory of your git repos on the Git Server- Example
DS_HOST=10.0.0.1
DS_HOST_SSH_PORT=1022
DS_PRIMARY_USER=git
DS_GIT_REPO_PATH=/volume1/git
list will simply list the repo folders on your server
$ scotty list
add will clone your local repo to the server as a bare repo that you can continue to work from
$ scotty add [repo_path] [new_repo_path]
destroy will delete the remote repo. It takes one argument which is the complete directory name on the server. The best way to get the name on the server is with the scotty list command
$ scotty destroy [repo_path]
Every method takes the following options
--user <name> SSH username
--host <host> Git server hostname
--port <n> Git server SSH port number [Default: 22]
--repoPath <dir> Path to repo parent directory on server