scotty-cli
v0.1.1-b
Published
The Scotty CLI is used to manage Git repositories remotely from the command line
Downloads
15
Maintainers
Readme
_ _ ____/__/_
/_)_(__(_) (__(__(_/_
.-/
(_/
The Scotty CLI is used to manage Git repositories remotely from the command line
FYIs
- 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'.
Installation
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_HOST
Host name or IP that your server can be accessed from the client machineDS_HOST_PORT
Host port that your server can be access fromDS_PRIMARY_USER
The user that has read/write access to the git repos directoryDS_GIT_REPO_PATH
The 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
Methods
list
list
will simply list the repo folders on your server
$ scotty list
add
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
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]