Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » Clone a private repo in GitHub.com with JGIT in java(Clone a private repo in Github.com with JGIT in java)
Clone a private repo in GitHub.com with JGIT in java [message #1849501] Fri, 21 January 2022 20:38 Go to next message
Jack hk is currently offline Jack hkFriend
Messages: 2
Registered: January 2022
Junior Member
I need to clone/download a private Git repository with JGit in Java from github.com. I am not able to find any workable example in JGit user guide. Is there any example or tutorial out there that will use a Personal access tokens to authenticate? Thank you in advance.

[Updated on: Mon, 24 January 2022 14:10]

Report message to a moderator

Re: Clone a private repo in GitHub.com with JGIT in java [message #1849504 is a reply to message #1849501] Fri, 21 January 2022 23:13 Go to previous messageGo to next message
Thomas Wolf is currently offline Thomas WolfFriend
Messages: 576
Registered: August 2016
Senior Member
Just use a CredentialsProvider that delivers the PAT as password.
Re: Clone a private repo in GitHub.com with JGIT in java [message #1849547 is a reply to message #1849504] Mon, 24 January 2022 14:02 Go to previous message
Jack hk is currently offline Jack hkFriend
Messages: 2
Registered: January 2022
Junior Member
Thank you for your help, Thomas.

It works.

[Updated on: Mon, 24 January 2022 15:38]

Report message to a moderator

Previous Topic:How to create a new tag?
Next Topic:[Feature request] Show commit message in Revision Information
Goto Forum:
  


Current Time: Thu Apr 25 02:04:52 GMT 2024

Powered by FUDForum. Page generated in 0.02796 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top