All sorts of cases of undoing pushed and unpushed work in Git: https://sethrobertson.github.io/GitFixUm/fixup.html
Most frequently used:
# Undo unpushed commit, keep the work
git reset --soft HEAD~1
# Unstage everything
git resetAll sorts of cases of undoing pushed and unpushed work in Git: https://sethrobertson.github.io/GitFixUm/fixup.html
Most frequently used:
# Undo unpushed commit, keep the work
git reset --soft HEAD~1
# Unstage everything
git reset# Debian
# Without sudo won't show pids and process names
sudo netstat -tlpn|grep LISTEN
# macOS
# Increase +c for better names visibility
# Without sudo only shows processes of the current user
sudo lsof -i -nP +c 30|grep LISTEN