[Git] 하위 디렉터리만 클론하기
레포내에 특정 폴더만 클론 받을 상황. 레포구조 Project_Intiallize_Template //repo ㄴ test1 //폴더 ㄴ test2 //폴더 ㄴ cra-ts-redux //폴더 ㄴ src ㄴ pages ㄴ modules ㄴ public ㄴ .prettierrc ㄴ ... 목표: cra-ts-redux 만 클론받을것이다. 1. clone 할 로컬 저장소 폴더를 만들고 2. git init 해준다. 3. git init my-proj cd my-proj 4. sparse Checkout 이 가능하도록 설정한다. (. sparse checkout은 저장소에서 특정 디렉토리나 파일만 보이도록 체크아웃하는 기능) 5. git config core.sparseCheckout true 6. 저장소 r..
Git
2022. 2. 13. 19:44