♻️ Added curl command to delete github repo from api

This commit is contained in:
z3rOR0ne 2022-07-20 13:45:41 -07:00
parent 2a391a94ce
commit 0a2c6d7153

View file

@ -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