Run this one-liner to remove local Git branches that have been merged back into master
.
git branch --merged | grep -v '\*\|master\|develop' | xargs -n 1 git branch -d
Run this one-liner to remove local Git branches that have been merged back into master
.
git branch --merged | grep -v '\*\|master\|develop' | xargs -n 1 git branch -d
Modifying a Composer library that is on Packagist is easy! Follow the steps below:
Before (Using official Packagist repo)
{ "require": { "torophp/torophp": "dev-master" } }
After (Overriding with your own fork)
{ "repositories": [ { "type": "vcs", "url": "https://github.com/khromov/ToroPHP" } ], "require": { "torophp/torophp": "dev-master" } }
Now you can run:
composer update
Composer should tell you that files have been modified. Answer “Y” to any questions. Congratulations! You are now using your own fork.
git clone -b my-branch git@github.com:user/myproject.git