I have 2FA (two-Factor Authentication) enabled on github, and I can't push
to repository (I have Gitbash for Windows). I have PAT (Public Access Token) for public access and repository where I'm trying to push
is public. I tried to update gitbash, as suggested here: Logon failed use ctr + c to cancel..., but now when I try git push origin dev
(it doesn't exist on repo but should be created after this command) it's not doing anything until I press ctrl+c
and cancel action. When I'm trying to push from IDE (Android studio) it's same as before update; I enter username or email and in field for password PAT, and I get error 403.
Edit
I was able to git push origin dev
when I uninstalled git and installed again (before that I updated old version, but something did not work, as I mentioned). But I didn't use PAT(I tried). Git shows me something like:
Select an authentication method for 'https://github.com/':
1. Web browser (default)
2. Personal access token
Second option don't works for me, but first is working in this case, because I'm using Credential Manager and I see new branch when I go to github.
This is public repo and my PAT have public access, I allowed one user to collaborate in repo. Is there problem? When I was creating PAT I didn't check anything because only options were access to private repos, following other users, gists, etc. Should my token work in this case and why?