0

I am aware of this question How to unpack all objects of a git repository?, but it doesn't help with PowerShell, I googled and even used ChatGPT, but no success yet.

Any help? How to unpack a git repository *.pack files using PowerShell?

Dan
  • 177
  • 1
  • 11
  • What exactly did you google? The git packfile format is [well documented](https://git-scm.com/docs/pack-format)... – Mathias R. Jessen Jan 25 '23 at 17:28
  • I am interested in working command for PowerShell to unpack it, it doesn't work using ```git unpack-objects``` – Dan Jan 25 '23 at 17:31
  • I usually use a ZIP utility like 7-Zip. – jdweng Jan 25 '23 at 17:31
  • @Dan What kind of error message do you receive with using `git unpack-objects`? If the pack files are corrupted then you'll likely have the same problem with any other tool :) – Mathias R. Jessen Jan 25 '23 at 17:33
  • Well, as I searched if they are in $GIT_DIR/objects/pack/ ```git unpack-objects``` can't work, so I moved them in ROOT_DIR/pcks/ next to .git folder and it worked in bash using ```git unpack-objects < pcks/*.pack```, but I can't find/write equivalent command for PowerShell. – Dan Jan 25 '23 at 17:49

0 Answers0