How to update a file in remote repo, without cloning that repo first?

Impossible. But since a prospective commit would just need to have one single commit as its parent it’s possible to employ the so-called “shallow cloning” and fetch just the tip commit of the branch you need. This will bring only a minimum amount of objects from the remote. Look for the --depth command-line option of git clone.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)