Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
git [2017/05/26 02:02] – [원격 저장소 → 로컬 저장소 내용 가져오기] ledyxgit [2021/02/07 03:15] (current) – external edit 127.0.0.1
Line 53: Line 53:
 <sxh bash> <sxh bash>
 git add <FILE 이름> git add <FILE 이름>
 +</sxh>
 +
 +==== 모든 비어있는 디렉토리 추가 ====
 +<sxh bash>
 +git clean -nd | sed s/'^Would remove '// | xargs -I{} touch "{}.keep"
 </sxh> </sxh>
  
Line 366: Line 371:
  
 === 특정 Directory pull === === 특정 Directory pull ===
-<sxh bash ; highlight:[3]>+<sxh bash ; highlight:[4]>
 // pull 대상 Directory 생성하고 // pull 대상 Directory 생성하고
 git init git init
 +git remote add -f origin URL
 git config core.sparseCheckout true git config core.sparseCheckout true
 echo "원하는 Directory 이름" > .git/info/sparse-checkout echo "원하는 Directory 이름" > .git/info/sparse-checkout
Line 428: Line 434:
 <code bash> <code bash>
 # Shell path (64x 기준) # Shell path (64x 기준)
-C:\Program Files\Git\bin\sh.exe --login -i+"C:\Program Files\Git\bin\sh.exe-login -i
 </code> </code>
git.1495760568.txt.gz · Last modified: 2021/02/07 03:15 (external edit)