♻️ Added curl command to delete github repo from api
This commit is contained in:
parent
2a391a94ce
commit
0a2c6d7153
1 changed files with 5 additions and 0 deletions
5
git_create_and_delete_repo_from_cli.txt
Normal file
5
git_create_and_delete_repo_from_cli.txt
Normal 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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue