git config remove username and password
1.
// remove credentials
git config --global --unset core.excludesfile
// removing by yourself
git config --global --edit
2
//You can use the --unset flag of git config to do this like so:
git config --global --unset user.name
git config --global --unset user.email
// If you have more variables for one config you can use:
git config --global --unset-all user.name