➜ /myproj git:(master) git push -u origin master
Username for 'https://github.com': username
Password for 'https://username@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/myrepo/myproj.git/'
In order to fix the authentication error, follow the below steps:
Step 1: Create Personal access token:
- Go to github.com,
- Go to Profile -> Settings,
- Select Developer Settings,
- Select Personal access tokens,
- Now click on Generate new token,
- Select Expiration and Scope,
- Click on Generate Token.
- Copy the token, it should look something like this ghp_129ZVLCiqkYTiWXxYC9ZSXjf20AkhN1InLOf
Step 2: Clone git project using token
% git clone https://github.com/user/repo
Username:
Password: access-token
More Posts related to Git,
- [Fixed] Git Clone git@github.com: Permission denied (publickey) Could not read from remote repository Fatal error
- Github: How to Invite Collaborators
- Git Commit - Author identity unknown, Please tell me who you are email
- [Solution] fatal: not a git repository (or any of the parent directories): .git
- [fix] zsh: command not found: git
- Github: fatal: Authentication failed Support for password was removed on August 13, 2021
- Get List of all local branches git command
- Git Revision Questions Before the Interview
- git fatal: Authentication failed error [fix]
- How to Install Git on Ubuntu Linux
- GitHub: How to Search Code
- How to change Git Default Author and Committer details in Eclipse
- How to check your installed version of Git
- Install GitHub Command Line Tool on Mac
- How to Merge Branch into Master Branch
- Perform an Empty Commit in Git without anything in Staging Area
- Git Fix: fatal: refusing to merge unrelated histories Error
- How to undo last Git Commit on Local Repository?
- git command to remove/unstage files from staging area
- Step-by-Step: Setting up Docker + Ubuntu Linux + Git + GitHub Tutorial
- Remove git config at Local, Global or System Levels?
- Fix [oh-my-zsh] Cant update: not a git repository
- Git Config Command - A Deep Dive
- 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.
- How to change directory in Git bash
More Posts:
- Convert Java Map Collection Object to JSON String using Jackson - Java
- Install Eclipse IDE on M1 Mac Natively - Eclipse
- How to convert Java String to byte[] Array - Java
- SharePoint Open in the client application document opens in browser - Java
- How to know Notepad++ is 32-bit or 64-bit Version - NotepadPlusPlus
- How to Enable spellcheck Notepad++ - NotepadPlusPlus
- How to delete all text after a character or string in Notepad++ - NotepadPlusPlus
- Read Java JDBC Connection Details from Properties File - Java