This commit is contained in:
2024-08-15 22:41:30 +02:00
parent 4c80d69b49
commit 17e0faa736
4 changed files with 39 additions and 2 deletions

View File

@@ -83,4 +83,34 @@ Doing this manually requires opening every folder one by one
It also removes non existent entries from recent projects and recent files
##
## repo
**Creates repositories on gitea and assigns them as "origin" on the git repository in working directory**
The configuration of this tool is done through environmental variables:
```
GITEA_USER=dave
GITEA_PASSWORD=supersecret
GITA_URL=https://git.site.quack-lab.dev/
```
Fine grained configuration is applied through flags:
```
Usage of repo.exe:
-f Force assignment of the remote (deletes existing origin)
-n string
Name of the repository (shorthand)
-name string
Name of the repository
-ni
Do not add remote to the new repo (shorthand)
-noinit
Do not add remote to the new repo
-p Make the repository private (shorthand)
-private
Make the repository private
-r string
Name of the remote to create for the new repository (shorthand) (default "origin")
-remote string
Name of the remote to create for the new repository (default "origin")
```