Thread (2 messages) flat view 2 messages, 2 authors, 2016-06-15

Re: How to recovery a corrupted git repo

From: Ping Yin <hidden>
Date: 2016-06-15 22:50:37

On Mon, Feb 21, 2011 at 10:51 PM, Matthieu Moy
[off-list ref] wrote:
Axel Freyn [off-list ref] writes:

There's also the brute-force approach

rsync $good_repo/.git/objects/ $bad_repo/.git/objects/
cd $bad_repo
git gc

Notice the absence of --delete in the rsync command: I'm just adding
new files in the $bad_repo, not deleting any (since files with
identical names must have identical content).
Thanks. This should be an applicable method. However, before rsyncing,
the pack should be unpacked first.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help