If you want git to forget old saved credentials and re-enter username and password, you can do that using below command:
git credential-cache exit
After running above command, if you try to push anything it will provide option to enter username and password.