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 |
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
# 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 |