gitup-cli
v0.2.19
Published
lightweight, powerful repository hosting
Downloads
22
Readme
Gitup
lightweight, powerful repository hosting
Installation
Install gitup-cli
via NPM:
npm i -g gitup-cli
or if NPM requires root privileges:
sudo npm i -g gitup-cli
Once installed, this will expose the gitup
shell command.
Usage
When using gitup
for the first time, you will be required to login with an existing account or register a new one.
Note: be sure to replace any < ... >
in the commands below with your desired/actual value.
Registering a new account
gitup login <username>
This command will prompt you to register if the username entered does not exist. Registration will read your public key from ~/.ssh
and generate a new user account.
Logging in
gitup login <username>
If the username does exist, then gitup
will proceed to authenticate the user.
Logging out
gitup logout
Checking currently logged in user
gitup user
Creating a new repository
gitup new <repository-name>
This command, if authenticated, will generate a new repository located at gitup.io/<username>/<repository-name>
, and will also generate necessary roles for you to access your new repo. Once generated, you can access your new remote repository via [email protected]:<username>/<repository-name>.git
.
Committing to a repository
gitup commit <commit-message>
This command will automatically add all changes in the project, commit them, and push them to remote.
Granting repo access to another user
gitup add-user <repsitory-name> <username>
This command will create a new role for the specified user in the specified repository.
Revoking repo access from another user
gitup remove-user <repository-name> <username>
This command will delete an existing user role for the specified repository. Use this command to revoke repository access for a specified user.