Skip to content

Instantly share code, notes, and snippets.

@bartoll
bartoll / gist:e31c4d1b314c27eb05e523d335651e8f
Created January 10, 2021 11:55
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
@bartoll
bartoll / gist:89d918f9a83de2a6adc15a98c7f80951
Created January 7, 2021 22:19
Project's contribution based on changes made in composer vendor folder
# Go into the directory of the vendor package that you changed
cd vendor/<owner>/<package>
# Create a new git repository
git init
# Create a new 'main' branch
git checkout -b main
# Commit all your changes