cat ~/.ssh/id_rsa.pub | ssh localhost -l admin -p 29418 keys add
This uploads your default public key and adds it to your account.
ssh localhost -l admin -p 29418 keys ls
This will list your available public keys.
ssh localhost -l admin -p 29418 keys permission 1 R
This will change the access permission of key 1 to read-only. Valid permissions are V, R, RW.
ssh localhost -l admin -p 29418 keys comment 1 Fedora20
This will change the the comment/description of key 1 to "Fedora20".
Plugin Management.
Gitblit ships with 0 plugins, however, there are some plugins available. Convenient management of the plugin system is only offered through the new SSH interface.
Once you have SSH up-and-running...
ssh localhost -l admin -p 29418 plugin available
This will download the plugins.json file from the Github-hosted plugin registry and show you the plugins that are available to install. The plugins.json file is cached and not automatically refreshed. You can force a refresh by specifying the -r flag for the available command.
ssh localhost -l admin -p 29418 plugin install powertools
This will install the powertools plugin. BTW, all downloads are SHA-1 and MD5 checksum-verified by default. Gitblit expects Maven-style checksums: file.ext, file.ext.sha1, file.ext.md5
ssh localhost -l admin -p 29418 plugin show powertools
This will show/describe the details of a plugin including it's extension points, if it is installed.
Available Plugins.
Right now there are two.
powertools: Command and control Gitblit over an SSH connection
SmartTicketBranches: Remove ticket branches on close and re-create them on re-open
Special Thanks.
Special thanks to David Ostrovsky for helping me get SSH up-and-running and for providing direction on bringing a plugin architecture to Gitblit.
Share & enjoy.
- tompos blogja
- A hozzászóláshoz be kell jelentkezni
- 851 megtekintés