Suppose there is an online repository with url https://website.domain/repo.git
and its structure is something like this.
repo/
|
|--a/
| |
| |--aa/
| |
| |--ab/
|
|--b/
I only work with the sub-directory aa
and have nothing to do with the rest of the repository. So I only need to track aa
(The whole repository is pretty big). Now, I don't have any authority over this online repository, otherwise I would've simply turned aa
into a submodule.
In short, how do I set repo/a/aa
as origin instead of the whole repo
so that I can pull any changes to repo/a/aa
?