Find a file
Anish Lakhwara b9edfd2e61 it's working
2023-05-23 15:29:01 +10:00
.env Initial Commit 2023-05-23 15:25:18 +10:00
create.sh it's working 2023-05-23 15:29:01 +10:00
env.sample Initial Commit 2023-05-23 15:25:18 +10:00
README.rst Initial Commit 2023-05-23 15:25:18 +10:00

  ___  __  ____  ____   __     ____  ____  ____   __      ___  ____  ____   __  ____  __  ____ 
 / __)(  )(_  _)(  __) / _\   (  _ \(  __)(  _ \ /  \    / __)(  _ \(  __) / _\(_  _)/  \(  _ \
( (_ \ )(   )(   ) _) /    \   )   / ) _)  ) __/(  O )  ( (__  )   / ) _) /    \ )( (  O ))   /
 \___/(__) (__) (____)\_/\_/  (__\_)(____)(__)   \__/    \___)(__\_)(____)\_/\_/(__) \__/(__\_)

===============================================================================================

A simple bash command to create a gitea repository. 

Requirements
------------

* bash
* curl
* gitea user account and token

Instructions
------------

First you must create a token that the application can use. This can be created on your user settings page in Gitea. (Maybe I'll write another script here that can create one for you from you password?)

Once the token has been created, copy the `env.sample` file to `.env` and place your token into the exported environment variable. 
Now you can create a symbolic link to the create script to some folder that is included in your `PATH` (either `/usr/local/bin` or `~/.local/bin` are generally supported, but it depends on the distribution)

This script also initializes the git repo, adds everything currently in your directory and commits it to git. This can be changed via `CREATE_REPO`