sudo kill -9 $(sudo lsof -t -i :4000) - Kill port application on Mac
- Looping go run executions with seq | xargs
seq 10 | xargs -n1 go run *.go - Split huge PR into smaller PR
Step by Step
- reset the data changes to
un-stashedchanges - re-commit the file
- push to split branch
Reset the data changes to un-stashed changes.
- You need to
checkoutto specific branch first; for example;huge-branch - Run this command
git reset --soft master- Do commit as usual and push to different branch
Or complete script
git checkout migrate-to-firebase git reset --soft develop git restore --staged . - reset the data changes to