According to your situation, folder a and folder b should be in the same warehouse. When pulling the code, the latest one in the warehouse will be taken, instead of only partial directories;
git is the warehouse manager. If your git repository is only in the a folder, then when you pull the code, you can only get the code in the a folder.
Judging from the problem you described, your warehouse should be in a folder other than a and b, so of course when you pull the code, b will be pulled down.
If you really don’t want to pull b’s code, just add b to .gitignore and that’s it
According to your situation, folder a and folder b should be in the same warehouse. When pulling the code, the latest one in the warehouse will be taken, instead of only partial directories;
git is the warehouse manager. If your git repository is only in the a folder, then when you pull the code, you can only get the code in the a folder.
Judging from the problem you described, your warehouse should be in a folder other than a and b, so of course when you pull the code, b will be pulled down.
If you really don’t want to pull b’s code, just add b to .gitignore and that’s it
I remember reading the introduction in the git quick start, you can go find it yourself
Pull seems to be pulling the entire git project directory, rather than pulling a certain directory within it.