TODO: create new remote repo script

This commit is contained in:
Pratik Tripathy
2024-03-12 20:25:48 +05:30
parent ca49dcafc2
commit 833a1ee1b1

10
10x_create_git_repo.sh Normal file
View File

@@ -0,0 +1,10 @@
#!/bin/sh
# TODO:
# - Fn that creates a gitea repo
# - Accept a name
# - On success display the remote ssh url + commands to add it to an existing repo
# curl "http://git.pratik.live/api/v1/activitypub/user-id/pratik" \
# -H "accept: application/json" \
# -H "Authorization: token xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
# -H "Content-Type: application/json" -d "{ \"body\": \"testing\", \"title\": \"test 20\"}" -i