I have an empty git repo and I want to fetch commit by commit from a remote repo. For example, I do
git init
git remote add origin https://github.com/torvalds/linux.git
git pull --no-edit -s recursive -X theirs . 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2
However, doing so gives me an error fatal: no matching remote head
. I'm wondering if fetching commit one by one from scratch is possible using git?
Put the question in another way. I want to simulate git clone
but instead of git clone
fetching all commits, I want to get commit one by one, which allows me to perform some other work in-between.
Thanks!