4 Authentication
For some git actions, you may be required to input git credentials. As of 2021, GitHub no longer accepts your password for git actions, meaning that if asked for your credentials, the terminal won’t accept your password for cloning the repository. Instead, you need to make a PAT (Personal Access Token). To do this:
- Go to your profile in GitHub > Developer settings (bottom left) > Personal Access Tokens (left) > Tokens (classic) > Generate new token (upper right).
- THEN, COPY AND PASTE YOUR TOKEN SOMEWHERE SECURE.
- Once you do this, when you go back to the Personal access tokens page, your new PAT should show up.
- Use the copy and pasted token for the password entry above in the terminal, and your repository should clone to your local computer.
There are additional tools that you may choose to use to make this process easier, such as Git Credential Manager. These tools can allow you to cache your credentials so that you only need to authenticate your GitHub account once, and your credentials will be remembered for the future.