Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does JGit support Git Credentials?

Does JGit support Git Credentials as documented here: http://git-scm.com/docs/gitcredentials?

I haven't found yet anything to this topic.

like image 202
olibur Avatar asked Apr 19 '14 17:04

olibur


Video Answer


1 Answers

The counterpart to Git Credentials in JGit is the CredentialsProvider interface. All commands that establish connections to remote repositories can be configured with a CredentialsProvider instance. They inherit from TransportCommand which has a setCredentialsProvider method.

like image 165
Rüdiger Herrmann Avatar answered Sep 23 '22 15:09

Rüdiger Herrmann