{{ message }}
Can't push to my own repo after enabling 2FA #190276
Answered
by
anshagarwalcoder
emptytimepastime84-design
asked this question in
Repositories
-
Beta Was this translation helpful? Give feedback.
Answered by
anshagarwalcoder
Mar 22, 2026
Replies: 3 comments 1 reply
This comment was marked as off-topic.
This comment was marked as off-topic.
-
|
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:
Alternatively, you can switch to SSH authentication for a more secure setup. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
emptytimepastime84-design
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

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:
Alternatively, you can switch to SSH authentication for a more secure setup.