During git push - Unable to access Fatal Error #23487
-
While running git push origin master remote: Permission to Sumanshu-Nankana/Docker.git denied to Sumanshu-Nankana.
But with both password and token, I am getting same ‘Unable to access’, with token (I get some extra message as well i.e. The requested URL returned error: 403) can anyone help me, what is wrong. Though I am |
Beta Was this translation helpful? Give feedback.
Replies: 15 comments
-
Did you make sure to give the PAT the necessary permissions when creating it? |
Beta Was this translation helpful? Give feedback.
-
Hi a have same problem, unable to access when I use git push at command line. What PAT is? How can I give that permission (if that’s is the problem) after? Can I? Please help me, thanks |
Beta Was this translation helpful? Give feedback.
-
“PAT” is short for “personal access token”. The token is a long and complicated string that you can use similarly to a password. Here’s the documentation on how to create one: Creating a personal access token - GitHub Docs If you already have PATs, you can see them on the Personal access tokens page in your settings. Click the one you want to edit and you should see (among other things) a list of scopes and a button to update the token below. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the reply. I will try. Can I use that token as a password at command line?
|
Beta Was this translation helpful? Give feedback.
-
Yes, see Using a token on the command line. That also has a link to how to cache the token (so you don’t have to enter it for every operation, only once in a while). Usually it’s a good idea to store the token in a password manage. After all it purposefully isn’t easy to remember. 😉 |
Beta Was this translation helpful? Give feedback.
-
Hi I still can’t log in, I made the token I got message A personal access token (Feri) with admin:repo_hook, delete_repo, and repo scopes was recently added to your account.
|
Beta Was this translation helpful? Give feedback.
-
It looks like the token is visible at the top of your photo. This forum is public, so you have shared the token with the whole world. You need to revoke the token now and generate a new one. Other than that, it looks like you typed |
Beta Was this translation helpful? Give feedback.
-
okay i changed my token. other than i did not. when i used on prompt line hat command : git push “my git link” Huawei <82feri@gmail.com> ezt írta (időpont: 2021. aug. 14., Szo, 17:59): |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Hi I did like copy paste with mouse and I did what you say tap the clipboard icon and paste. |
Beta Was this translation helpful? Give feedback.
-
And it still doesn’t work? That’s really odd! In that case I can only give the same advice as here, unfortunately:
That’s odd! In that case the only thing I can think of is to share your platform (OS) and Git version (ideally check for updates if you haven’t already), maybe someone else has encountered a similar issue. Or try using SSH instead of HTTPS. |
Beta Was this translation helpful? Give feedback.
-
hi unfortunately that is not works, same as the other user what you sent me the link. how can i try with ssh? im very new i dont understand lots of things. how can i change https to ssh? |
Beta Was this translation helpful? Give feedback.
-
now succeded! i deleted my .git files from my pc, reinstalled the git program, make everything again, and now working. i just had 1 file to add and commit so wasnt a big deal. cheers my friend |
Beta Was this translation helpful? Give feedback.
-
Did you try ? git push -f origin |
Beta Was this translation helpful? Give feedback.
-
There are times when it’s needed, but if you just “try” it in case of a problem you risk losing data. And it definitely won’t help with an authentication issue. |
Beta Was this translation helpful? Give feedback.
Did you make sure to give the PAT the necessary permissions when creating it?