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: 86
Registered: August 2016
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: 1039
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:Git hooks in eclipse
Next Topic:Missing unknown when doing pull
Goto Forum:
  


Current Time: Thu Nov 15 08:40:29 GMT 2018

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

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

Back to the top