-
codeload github 주소 의미 해석프로그래밍/흔적 2022. 8. 9. 15:43
예시 명령어
curl https://codeload.github.com/mui/material-ui/tar.gz/master | tar -xz --strip=2 material-ui-master/examples/nextjs-with-typescript
codeload.github.com
github 파일 다운로드 및 보관을 위한 캐싱 목적의 subdomain
mui
github 계정 소유자 id (owner)
material-ui
해당 계정의 repository 이름 (repo)
tar.gz
다운로드 받을 압축파일 형식 (tar, zip 등)
master
branch 이름 ( 주로 main, master )
tar 관련 명령어
-xz
x는 압축해제, z는 gzip 사용
—strip=2
상위 2개의 경로를 제외
material-ui-master/examples/nextjs-with-typescript
특정 경로 지정시 해당 경로만 포함 (material-ui-master/examples/nextjs-with-typescript)
예시 명령어로 tar로 압축을 풀면 최상위 폴더명이 {repo}-{branch} 이므로 material-ui-master 이다.
참고 자료
How is codeload.github.com different to api.github.com?
I was browsing the next.js repository and noticed this function that downloads and extracts a template from GitHub, with tar: export async function downloadAndExtractExample( root: string, name:
stackoverflow.com
Repository contents - GitHub Docs
Status: 201 { "content": { "name": "hello.txt", "path": "notes/hello.txt", "sha": "95b966ae1c166bd92f8ae7d1c313e738c731dfc3", "size": 9, "url": "https://api.github.com/repos/octocat/Hello-World/contents/notes/hello.txt", "html_url": "https://github.com/oct
docs.github.com
질문이나 오류 발견 환영입니다.
'프로그래밍 > 흔적' 카테고리의 다른 글