Created
January 10, 2021 11:55
-
-
Save bartoll/e31c4d1b314c27eb05e523d335651e8f to your computer and use it in GitHub Desktop.
Getting into packed GIT repository to reveal commits
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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