Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
If you are getting this error go through this video :
For Linux / Mac
Important Note : To store the token git credential so that you don't have to type token everytime, use this command before pushing.
git config credential.helper store