I need to push a cloned repo back to Github, but when I run git push -u -f origin main
in the folder that I've initialized and added a remote origin to, it returns this error:
remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/BusyBird15/WeatherOne.git/'
How do I authenticate myself when the main authentication method has been removed?