% git push
Password for 'https://ghp_1aXuIxxxx4wy2sjdvxxxxxxxxxxxx3ZFHfZ@github.com':
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/user/mynotes.git/'
If you were trying to push a branch up to origin GitHub and you received, the above error when you were asked to authenticate with a password, then it's most likely that your Personal access tokens has expired.
Solution:- Login to your GitHub profile,
- Go to Settings -> Developers Settings,
- Now checkout Personal access tokens and see if your token has expired,
- If yes create a new one.
- And start using it instead: Set new Token using command line.

As the page states: ✏️ Personal access tokens function like ordinary OAuth access tokens. They can be used instead of a password for Git over HTTPS, or can be used to authenticate to the API over Basic Authentication.
More Posts related to Git,
- How to ignore files in git using .gitignore file
- How to update expired GitHub token on local git remote config
- How to undo last Git Commit on Local Repository?
- Git Commit - Author identity unknown, Please tell me who you are email
- Git: Step-by-Step - How to Push Local Brach to GitHub
- [Solution] fatal: not a git repository (or any of the parent directories): .git
- Remove git config at Local, Global or System Levels?
- Change the default git branch name from master to main
- fix fatal: --local can only be used inside a git repository error
- Git Remove Untracked Files using Command
- How to remove or unstage a file from git staged area
- Fix Git: Warning: could not find UI helper GitHub.UI on Windows
- Fix [oh-my-zsh] Cant update: not a git repository
- Get List of all local branches git command
- Github: fatal: Authentication failed Support for password was removed on August 13, 2021
- [fix] fatal: this operation must be run in a work tree in git
- How to Install Git on Windows
- Perform an Empty Commit in Git without anything in Staging Area
- Rename git branch on Local and GitHub Remove using Command
- Fix: error: could not lock config file /etc/gitconfig: Permission denied
- Get the file location of git config values
- Git: Delete Branch Locally and Remotely at Origin
- fatal: Unable to create '/c/git_repo/.git/index.lock': File exists. If no other git process is currently running, this probably means a git process crashed in this repository earlier.
- Github: How to Invite Collaborators
- How to change directory in Git bash
More Posts:
- How to Enable or Disable Dark Mode on macOS Ventura 13 - MacOS
- Rounded Images in Bootstrap framework - Bootstrap
- Sharepoint Server 2016 installation Prerequisites with download links - SharePoint
- How to display date and time in GMT Timezone in Java - Java
- Quick Steps to install NodeJs on macOS - MacOS
- How to Generate Self-Signed OpenSSL certificate in three easy steps - HowTos
- Spotify is down for iOS and Android globally - error no internet connection available, something went wrong - News
- Understanding grep command and its usage [Unix/Linux/macOS/Windows-Bash] - HowTos