In .git/hooks/post-commit :
Try the gh CLI for one week. You’ll never open your browser for a PR review again. desktop github linux
#!/bin/bash make test && git push origin HEAD stop everything and install it:
0 * * * * cd /home/user/myrepo && git fetch --all --prune – run tests and push if they pass desktop github linux
git config --global alias.undo 'reset --soft HEAD~1' If you’re not using the gh tool yet, stop everything and install it: