I am running etckeeper
on two different machines, boxA
and boxB
. The OS, etckeeper
repository and all, on boxB
was copied from boxA
back in January. In order to apply some setup changes made on boxA
to boxB
, I added the repository on boxA
as a remote repository on boxB
with the intention of doing some cherry picking, eg:
git remote add boxA ssh://boxA/etc
git fetch boxA
git cherry-pick xxxx # never got this far
The problem is that the most recent commits are not available on boxA
, only commits up until late February. So far I have tried:
doing
git show
with one of the missing commit numbers - this is definitely not a problem withgit log
just not showing all the commits.copying the full
/etc
onboxA
toboxB
and adding/fetching it via its path - this is definitely not an issue somehow introduced byssh
(to complicate things I was using a script via theGIT_SSH
environment variable to avoid creating aroot
login).git fsck
on both repositories (no problems found).running the following command on copied version of both repositories (after doing a
git remote remove boxA
onboxB
and before readding):git -c gc.reflogExpire=0 -c gc.reflogExpireUnreachable=0 \ -c gc.rerereresolved=0 -c gc.rerereunresolved=0 -c gc.pruneExpire=now gc \ --aggressive
How can I get git fetch
to retrieve all of the commits?