Please update new user repository URL
git remote set-url origin https://[email protected]/repository.git
I tried using below commands, it's not working:
git config user.email "[email protected]"
git config user.name "user"
OR
git config --global user.email "[email protected]"
git config --global user.name "user"