giteaDo
Perform basic reposirory related operations on a gitea instance
In order to use it for your own account you first have to create one over any gitea instance and create an access token according to the documentation here
You should also download and configure pass for a more secure token management although if you want to, you can just paste the plaintext token in the code
For convenience if you choose the right option you can watch this excellent tutorial by Luke Smith
Installation
git clone https://git.konsthol.eu/konsthol/giteaDo
cd giteaDo
sudo cp giteaDo /usr/bin/
(Or cp giteaDo anywhere in your $PATH)
Usage
giteaDo [-h|-c|-i|-d|-l]
you can have many options in one run such as giteaDo -h -l -d
To get a help menu
giteaDo -h|--help
To create a new repository
giteaDo -c|--create
To create a new repository in current folder with a random commit message
If you don't want it to be random just change the message in something like "Initial commit"
giteaDo -i|--instant
To delete existing repository
giteaDo -d|--delete
To list all owned repositories
giteaDo -l|--list
Dependencies
- curl
- awk
- rofi (Optional, copy paste the read lines to have to type the name)
- fzf (Optional, for ssh connections)
- pass (Optional, paste plaintext token if you don't care about security)
- sed
- jq
- grep
- cat
Credits go to
For being an awesome service and because this script uses their api to function