Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [egit-dev] Unable to get egit to use github PAT automatically

On Tue, Feb 11, 2025 at 3:11 AM KARR, DAVID via egit-dev <egit-dev@xxxxxxxxxxx> wrote:
I've been using Eclipse/egit to work with our local BitBucket server for quite some time.  We're now moving repositories to Github. I have a PAT. I'm able to get this to work with git command line, and with vscode.  However, when I try to do any operation in Eclipse (2024-12), it prompts me for my username/password.  I can get past this by entering my github username and the PAT, but I shouldn't have to do this.  When I perform a git operation on the command line, it gives me the little "Connect to Github" dialog, and I "Sign in with my browser", and that works. I'm also looking at how this can be cached, so I don't have to even do that every time, but this is better than having to enter my credentials each time.

I installed "git-credential-manager" (https://github.com/git-ecosystem/git-credential-manager), and my .gitconfig has a "[credential]" block with a "helper" property pointing to "git-credential-manager.exe".  I also have two "named" credential blocks, one for our bitbucket server, and one for an azure server, neither of which sets a helper property.  This is working fine from Cygwin git.

Currently neither JGit nor EGit have support for C-git's credential helper API.
You should be able to persist credentials using the Eclipse credentials store, in the git repositories view select "Change Credentials" on the repository's fetch URL.

-Matthias
 
_______________________________________________
egit-dev mailing list
egit-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/egit-dev

Back to the top