When given a GitHub URL or repo name, ALWAYS use curl to fetch real content first. Never guess or infer — fetch then analyze.
# 1. List root directory
curl -s "https://api.github.com/repos/OWNER/REPO/contents/"
# 2. Get README
curl -s "https://raw.githubusercontent.com/OWNER/REPO/main/README.md"
# 3. Explore key subdirectories based on findings
curl -s "https://api.github.com/repos/OWNER/REPO/contents/src"
curl -s "https://raw.githubusercontent.com/OWNER/REPO/main/PATH/TO/FILE"
master if main returns 404
?ref=BRANCH for other branches
共 1 个版本