From 833a1ee1b17a05cad2f884de4b20a52d3dbbdc5c Mon Sep 17 00:00:00 2001 From: Pratik Tripathy Date: Tue, 12 Mar 2024 20:25:48 +0530 Subject: [PATCH] TODO: create new remote repo script --- 10x_create_git_repo.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 10x_create_git_repo.sh 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