readme2
#!/bin/bash
API_URL="https://api.github.com/user/repos"
TOKEN="YOUR_ACCESS_TOKEN"
REPO_NAME="new-repo"
DESCRIPTION="My new repository" PRIVATE="true" # Set to "false" for public repository HAS_ISSUES="true"
JSON_DATA=$(cat <<EOF { "name": "$REPO_NAME", "description": "$DESCRIPTION", "private": $PRIVATE, "has_issues": $HAS_ISSUES } EOF )
curl -X POST "$API_URL"
-H "Authorization: token $TOKEN"
-H "Accept: application/vnd.github.v3+json"
-d "$JSON_DATA"