Authentication is required but no CredentialsProvider has been registered


参考
在使用JGit执行push命令时,遇到了如下错误:
Authentication is required but no CredentialsProvider has been registered
经查询后得知:git执行push命令时,需要配置git 用户名密码进行安全链接,
JGit中执行的操作如下: git.push().setCredentialsProvider(new UsernamePasswordCredentialsProvider(username, password));


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM