diff --git a/README.md b/README.md index 8560cd4..7279717 100644 --- a/README.md +++ b/README.md @@ -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 -## \ No newline at end of file +## 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") +``` + diff --git a/repo.exe b/repo.exe new file mode 120000 index 0000000..b452d36 --- /dev/null +++ b/repo.exe @@ -0,0 +1 @@ +C:/Users/Administrator/Seafile/Projects-Go/GoProjects/gitea-api/main.exe \ No newline at end of file diff --git a/sync b/sync index bc8c16f..a06932c 100644 --- a/sync +++ b/sync @@ -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 \ No newline at end of file +"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 \ No newline at end of file diff --git a/sync2bin b/sync2bin index e69de29..7598796 100644 --- a/sync2bin +++ b/sync2bin @@ -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" \ No newline at end of file