git 명령어

Moseoh·2022년 4월 14일
0
post-thumbnail

리눅스 git 설치

sudo apt install git

git 저장소의 하위 폴더만 clone

git init
git remote add origin ${repository}
git config core.sparsecheckout true
echo ${folder path} > .git/info/sparse-checkout
git pull origin master

Sample:

git init
git remote add origin https://github.com/azqazq195/moseoh_server
git config core.sparsecheckout true
echo moseoh_homepage/* > .git/info/sparse-checkout
git pull origin master
profile
슬기로운 탐구생활

0개의 댓글