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