Skip to content
Discussion options

You must be logged in to vote

If you enabled 2FA, you can no longer use your GitHub password for pushing code.

Instead, you need to use a Personal Access Token (PAT).

Steps:

  1. Go to GitHub Settings → Developer Settings → Personal Access Tokens
  2. Generate a new token
  3. Use this token as your password when pushing via Git

Alternatively, you can switch to SSH authentication for a more secure setup.

Replies: 2 comments

This comment was marked as off-topic.

Comment options

You must be logged in to vote
0 replies
Answer selected by emptytimepastime84-design
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Actions Build, test, and automate your deployment pipeline with world-class CI/CD Accessibility Making GitHub useable for members of the disability community Question Ask and answer questions about GitHub features and usage Welcome 🎉 Used to greet and highlight first-time discussion participants. Welcome to the community!
3 participants