Suppose you have a bare repository. It contains 3 files:
a.txt
b.txt
c.txt
.
Now, suppose I don't have the b.txt
and c.txt
but I have a newer version of the a.txt
file. Is it possible to use some command in git and tell it to Update a.txt
in the repository, without having to clone/pull the other files? Something like: "Update a.txt
in that repository and only look for changes in files that already exist." If not, is there any other version control system which supports this?
Update:
One example for this would be this: A website like github, containing a lot of repositories and a lot of files in each repository. Only, in this website users won't always see the latest revision. They select a revision to see and sometimes they would want to update a file. In this case, the total size of the files would be too much. Considering the users won't always see the latest revision, I think a better way would be to just get a single revision of a particular file on demand and whenever an update is added, add the updated files.