OS/2, eCS & ArcaOS - Technical > Programming

Git push to Github issue.

(1/2) > >>

Martin Iturbide:
Hello

Since Github changed to the doble autentification factor, or maybe earlier, I had not been able to "push" (upload) code changes to the github repository.

I get this issue:


--- Quote ---[E:\DEV\5TRYING\DOCS-IDEAS-WARP-Martin-s-Docs]git push
Username for 'https://github.com':
Password for 'https://martiniturbide@github.com':
remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/OS2World/DOCS-IDEAS-WARP-Martin-s-Docs/'

--- End quote ---

I'm lost with the documentation now. Does anybody know what I may be missing now ?

Regards

Dave Yeo:
I'm pushing with a private token, though doesn't work for OS2World, maybe due to setup error.
https://github.com/settings/tokens/ I believe. I'm also having to authenticate through my phone, the github app and/or an authenticator app, 2FAS Auth here, there's a few.
Just updated my token, they're good for a month and pushed to a fork of the screensaver. Once I'm ready, I'll sync them, which I seem to be able to do from the browser.

Martin Iturbide:
Hello

I'm not sure if I did the right thing now, for the OS2World organization in github I had set:
- Allow access via fine-grained personal access tokens
- Do not require administrator approval
- Allow access via personal access tokens (classic)

But I can not still push, using the github password, or using my personal token. Do I have to generate an token for OS2World ? I still have no idea where to put it when I run the git.exe command.

Regards

Dave Yeo:
Use the token like a password, paste it in when pushing and asked for a password. I use fc/2 and find a mouse cord for pasting works while shift-insert seems to add an extra something, probably an EOL and doesn't work.
It's possible you might have to generate one for OS2World.

Steven Levine:
Martin, I guess it's been a while since you last pushed.  Tokens have been required for pushes for quite a while.

Your access control settings seem reasonable.  I'll have to check what I use.

The token is associated with the user id.  If you login as os2world, you need token for os2world. 
If you login as MartinI, you need a token for MartinI

There's no need to copy/paste tokens.  Use a credential helper

In %HOME\.gitconfig add:

[credential]

; helper = cache
helper = store
; helper = store --file d:/home/.git-credentials

Then create %HOME\.git-credentials

and insert the URL:

 https://your-name:token-goes-here@github.com

Navigation

[0] Message Index

[#] Next page

Go to full version