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