diff --git a/10x_create_git_repo.sh b/10x_create_git_repo.sh new file mode 100644 index 0000000..bd0f713 --- /dev/null +++ b/10x_create_git_repo.sh @@ -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