Earlier, when I used to add, commit and then push my changes to my Git repository, my WSL used to ask me about my username and password, after which it successfully pushed all of my new files to my repository but since few days I am trying to push my required additions and commits to my Git repository but it gives me the following error
git push origin main
/mnt/c/Program\ Files/Git/mingw64/bin/git-credential-manager-core.exe get: 1: /mnt/c/Program Files/Git/mingw64/bin/git-credential-manager-core.exe: not found
Username for 'https://github.com': Mamoona786
Password for 'https://[email protected]':
/mnt/c/Program\ Files/Git/mingw64/bin/git-credential-manager-core.exe store: 1: /mnt/c/Program Files/Git/mingw64/bin/git-credential-manager-core.exe: not found
To https://github.com/Mamoona786/my_first_website.git
! [rejected] main -> main (fetch first)
error: failed to push some refs to 'https://github.com/Mamoona786/my_first_website.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ..') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
Kindly help me how can I resolve my error?