git-credential-manager icon indicating copy to clipboard operation
git-credential-manager copied to clipboard

How to push? I do not have authenticating token. How does this work???

Open jcanajr opened this issue 2 years ago • 2 comments

Version


Operating system

macOS

OS version or distribution

N/a

Git hosting provider(s)

GitHub

Other hosting provider

No response

(Azure DevOps only) What format is your remote URL?

None

Can you access the remote repository directly in the browser?

Yes, I can access the repository

Expected behavior

Doing development environment. I can not push. Something in regards to token. Need instruciotns.

Actual behavior

help

Logs

Help

jcanajr avatar Jan 23 '24 05:01 jcanajr

Something in regards to token.

This is very vague. Could you take a screenshot, at least, and paste it here? Otherwise the only answer anyone competent could give would be along the lines of "something might fix it"...

dscho avatar Jan 23 '24 10:01 dscho

I get this message.

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

On Tue, Jan 23, 2024 at 2:55 AM Johannes Schindelin < @.***> wrote:

Something in regards to token.

This is very vague. Could you take a screenshot, at least, and paste it here? Otherwise the only answer anyone competent could give would be along the lines of "something might fix it"...

— Reply to this email directly, view it on GitHub https://github.com/git-ecosystem/git-credential-manager/issues/1519#issuecomment-1905790648, or unsubscribe https://github.com/notifications/unsubscribe-auth/BFONFN4SYZKDWZLLBDHQATDYP6JKNAVCNFSM6AAAAABCGL4NCSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBVG44TANRUHA . You are receiving this because you authored the thread.Message ID: @.***>

jcanajr avatar Jan 23 '24 17:01 jcanajr

In order to push to a repository, or fetch from a private repository, Git needs a set of credentials to authenticate the request. Git can use its own custom protocol, SSH, or HTTP(S) to communicate to a remote server.

For HTTP-based remote connections, Git only [^1] knows about username and passwords, and can use small programs or scripts called 'credential helpers' to help store and manage these credentials.

GitHub no longer supports using your username and password to authenticate over HTTP(S), and requires that you use a personal access token instead.

Git Credential Manager is a Git credential helper that can speak with GitHub to help create and store access tokens for use with Git.

[^1]: Git can also use SPNEGO (such as Kerberos or NTLM on Windows) for HTTP(S)

mjcheetham avatar Mar 05 '24 20:03 mjcheetham