Search code examples
gitmacosgithubgitlabssh-keys

Facing issue with git clone command on mac OS catalina


After Mac OS updated to Catalina, facing issue with git clone from my git repo

inspite of using correct username and password for cloning, still getting below error

remote: Invalid username or password. fatal: Authentication failed for 'https://github.com/My_Repo.git'

Please help me to resolve this.


Solution

  • Check first:

    The OP Mahendra Sahu confirms in the comments:

    For 2FA activated account, you need a PAT (Personal Access Token)