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")
```

1
repo.exe Symbolic link
View File

@@ -0,0 +1 @@
C:/Users/Administrator/Seafile/Projects-Go/GoProjects/gitea-api/main.exe

3
sync
View File

@@ -1,4 +1,5 @@
"C:\Users\Administrator\Seafile\Projects-Go\GoProjects\fiter\main.exe",fiter.exe
"C:\Users\Administrator\Seafile\Projects-Go\GoProjects\fmoditer\main.exe",fmoditer.exe
"C:\Users\Administrator\Seafile\Projects-Go\GoProjects\project-scanner\main.exe",vsclean.exe
"C:\Users\Administrator\Seafile\Projects-Go\GoProjects\synclib\main.exe",cln.exe
"C:\Users\Administrator\Seafile\Projects-Go\GoProjects\synclib\main.exe",cln.exe
"C:\Users\Administrator\Seafile\Projects-Go\GoProjects\gitea-api\main.exe",repo.exe

View File

@@ -0,0 +1,5 @@
fiter.exe,"C:\Program Files\Git\usr\bin\fiter.exe"
fmoditer.exe,"C:\Program Files\Git\usr\bin\fmoditer.exe"
vsclean.exe,"C:\Program Files\Git\usr\bin\vsclean.exe"
cln.exe,"C:\Program Files\Git\usr\bin\cln.exe"
repo.exe,"C:\Program Files\Git\usr\bin\repo.exe"