Monday, 15 July 2013

linux - git fetch - missing commits -



linux - git fetch - missing commits -

i running etckeeper on 2 different machines, boxa , boxb. os, etckeeper repository , all, on boxb copied boxa in january. in order apply setup changes made on boxa boxb, added repository on boxa remote repository on boxb intention of doing cherry picking, eg:

git remote add together boxa ssh://boxa/etc git fetch boxa git cherry-pick xxxx # never got far

the problem recent commits not available on boxa, commits until late february. far have tried:

doing git show 1 of missing commit numbers - not problem git log not showing commits.

copying total /etc on boxa boxb , adding/fetching via path - not issue somehow introduced ssh (to complicate things using script via git_ssh environment variable avoid creating root login).

git fsck on both repositories (no problems found).

running next command on copied version of both repositories (after doing git remote remove boxa on boxb , 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 git fetch retrieve of commits?

so problem here turned out there detached head in repository on boxa after incomplete prepare of botched rebase. when happens output of git branch follows:

# git branch * (no branch) master

the fix create branch on boxa , merge it:

git branch temp git checkout master git merge temp git branch -d temp

after commits on branch master (or @ to the lowest degree thought branch master) available after doing git fetch.

linux git

No comments:

Post a Comment