Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » How to create a new repo using jGit(How to create a new repo using jGit)
How to create a new repo using jGit [message #1787345] Wed, 23 May 2018 22:05 Go to next message
Sudip Chakrabarty is currently offline Sudip ChakrabartyFriend
Messages: 1
Registered: May 2018
Junior Member
How to create a new repo under an existing org using jGit ?
I am aware that we can create a repo using the GUI in github but how to achieve the same thing using jGit ?
Re: How to create a new repo using jGit [message #1787479 is a reply to message #1787345] Sat, 26 May 2018 08:59 Go to previous messageGo to next message
Thomas Wolf is currently offline Thomas WolfFriend
Messages: 576
Registered: August 2016
Senior Member
JGit has no built-in operations for working with the Github API.

Maybe the egit-github project is helpful here; org.eclipse.egit.github.core.service.RepositoryService.createRepository().

Otherwise use any other client-side library for working with the Github API to invoke that API endpoint.
Re: How to create a new repo using jGit [message #1787511 is a reply to message #1787479] Sun, 27 May 2018 21:18 Go to previous message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1268
Registered: July 2009
Senior Member
JGit does not provide a way to create a repository on Github since git does not define a way to create a Git repository on a remote git server.
Github provides a REST API for that but this API is Github's API and not Git's API.
Previous Topic:EGit could not detect where Git is installed
Next Topic:Missing unknown when doing pull
Goto Forum:
  


Current Time: Fri Mar 29 13:44:58 GMT 2024

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

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

Back to the top