From 0a2c6d71537af68dc96d25ea51be5ebf9afe1b7d Mon Sep 17 00:00:00 2001 From: z3rOR0ne Date: Wed, 20 Jul 2022 13:45:41 -0700 Subject: [PATCH] :recycle: Added curl command to delete github repo from api --- git_create_and_delete_repo_from_cli.txt | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 git_create_and_delete_repo_from_cli.txt diff --git a/git_create_and_delete_repo_from_cli.txt b/git_create_and_delete_repo_from_cli.txt new file mode 100644 index 00000000..b48d9033 --- /dev/null +++ b/git_create_and_delete_repo_from_cli.txt @@ -0,0 +1,5 @@ +# Create github repository from cli +curl -u $USER:$GH_TOKEN https://api.github.com/user/repos -d '{"name": "testrepo"}' + +# Delete github repository from cli +curl -i -H 'Authorization: token $GH_TOKEN' -X 'DELETE' https://api.github.com/repos/$USER/testrepo --http1.1