0

I have git repo in Bitbucket with hundreds of dirs and subdirs. I'm writing a script (that calls git) to check if there have been any changes, but for this script I'm only interested a specific folder in the origin repo...not the whole repo.

Then, if there are any changes in that folder only, pull just the folder and all its contents.

What git commands would I use to do the check of the single folder in origin, and also what commands would I use to pull down just the folder?

Thanks

3z33etm
  • 1,083
  • 3
  • 15
  • 23

1 Answers1

0

You can't pull a single folder. A pull is a fetch and a merge. Fetches can only get full commits. What you could do, however, is a partial merge as described here.

mrks
  • 8,033
  • 1
  • 33
  • 62