apache / netbeans

Apache NetBeans
https://netbeans.apache.org/
Apache License 2.0
2.6k stars 836 forks source link

Git: use credentials helper #5135

Open NicolaIsotta opened 1 year ago

NicolaIsotta commented 1 year ago

Description

Netbeans should use git credentials saved by the credential helper.

Use case/motivation

I would like Netbeans not to ask credentials when I perform an operation on a repo; it should use the configured credential helper like the git command line. I have dozens of repos cloned from github and it's really painful updating the credentials every time an access token expires.

Related issues

4439 (not sure if really related)

JGit issue: https://bugs.eclipse.org/bugs/show_bug.cgi?id=441198

Are you willing to submit a pull request?

No

Code of Conduct

Yes

matthiasblaesing commented 1 year ago

jgit (the library used by NetBeans) supports pagent on windows and ssh-agent on other platforms. You need to load the key into the agent and it will be automatically used when you use SSH based origins.

I never entered credentials when I cloned out from github.

NicolaIsotta commented 1 year ago

JGit issue: https://bugs.eclipse.org/bugs/show_bug.cgi?id=441198