Skip to content

Instantly share code, notes, and snippets.

@bartoll
Created January 10, 2021 11:55
Show Gist options
  • Save bartoll/e31c4d1b314c27eb05e523d335651e8f to your computer and use it in GitHub Desktop.
Save bartoll/e31c4d1b314c27eb05e523d335651e8f to your computer and use it in GitHub Desktop.
Getting into packed GIT repository to reveal commits
# my packed GIT repository was distributed through COMPOSER VCS source
# so after installing this package, i had cached version in '~/.cache/composer/vcs/{MY_PACKAGE}.git'
mkdir my_repo
cd my_repo
sudo cp -rp ~/.cache/composer/vcs/{MY_PACKAGE}.git/ ./
mv {MY_PACKAGE}.git .git
git config --local --bool core.bare false
git checkout tags/{CHOOSEN_TAG}
git checkout -b master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment