notes/git_create_and_delete_repo_from_cli.txt
2022-07-20 13:45:41 -07:00

5 lines
267 B
Text

# 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