- Remove local branches that have been merged
git branch --merged | egrep -v "(^\*|master|main)" | xargs git branch -d
- Remove remote branches that have been merged
git remote prune origin
- Sorting local branches by last commit date
git for-each-ref --sort=-committerdate refs/heads/ --format='%(committerdate:short) %(refname:short)'
- Restart
nginx -s restart
- Dump environment variables to the screen
printenv | sort
- Dump environment variables to the screen
gci env: