WARNING: THE NEXT ANSWER SHOULD NOT WORK WITH THE LATEST GIT VERSIONS
(I am open to suggestions on how to make this work with current versions of git.)
The answer, it turns out, is surprisingly simple and shows how amazing git is.
- Create a new git repo.
- Add and commit new files.
- tell the new repo where the remote repo is (git remote incremental ...)
- click on remote repo.
Notes. The remote repo must either be a result or have a receive.denyCurrentBranch method for βignoreβ or βwarnβ
This is based on the assumption that the added files are NEW and will not conflict with any other file in the repo.
The existing contents of the remote repository does not matter as long as you can be sure that you are not going to conflict with anything.
PS Thanks to everyone who posted possible workarounds.
source share