특정 폴더 clone

BERT·2023년 3월 23일
0

Github

목록 보기
1/4

git 초기화
git init

원격 저장소 연결
git remote add origin <github url>

sparsecheckout 활성화
git config core.sparsecheckout true

폴더 설정
pwd가 .git에 있어야 함
echo path/* >> .git/info/sparse-checkout

브랜치가 master가 아닌 경우
git checkout -b "branch name"

PULL
git pull origin linedetect_SS

폴더 수정 후 변경 내용 commit
git add .
git commit -m "Updated the folder"

PUSH
git push origin "branch name"

0개의 댓글