github - Possible to have a sub-project that only subscribes to part of the target project?

StackOverflow https://stackoverflow.com/questions/12493031

  •  02-07-2021
  •  | 
  •  

문제

I'd like to set up a git sub-project that pulls in just one file from the target project - I just want to pull in the built JavaScript library from the target project, not the whole project.

Is this possible?

도움이 되었습니까?

해결책

Short answer: no.

Long answer: no, but it might help to perform a shallow clone (get only the last N commits). Look at git clone --depth MAXDEPTH.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top