Does JGit support Git Credentials?

别来无恙 提交于 2019-12-10 13:59:37

问题


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

I haven't found yet anything to this topic.


回答1:


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.



来源:https://stackoverflow.com/questions/23173250/does-jgit-support-git-credentials

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!