git rm --cached file git rm -r --cached folder
The scripts run in PowerShell.
netstat -ano | findstr PORT stop-process PID