git pull and push specific files without the repository saved locally

Viewed 1504

I have a couple questions but I'll put them together given they look quite similar.

Let's say I have a repository called Repo, and it contains two folders, A and B.

Via terminal (and given I don't have the project in my machine), how can I...

(1) ...clone only folder A from Repo to my machine?

(2) ...send a file/folder C to Repo?

2 Answers
Related