Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jgit-dev] Using JGit to Create and 'Manage' Git Repositories

On 11 February 2013 10:18, Isuru Haththotuwa <isurulucky@xxxxxxxxx> wrote:
I have been using JGit for a while now, for creating repos and performing git operations from Java code. Going further, can we manage Git repositories through java code using JGit as well? What I meant from managing is creating users and assigning permissions, etc.

Hi Isuru, I think you might be confusing Git (the software) with Git-hosting (such as GitHub, or Gerrit-based services). Git itself doesn't have any real concept of users or permissions, but usually sits on top of systems which do. I can see you're a GitHub user, so perhaps you'd like to use GitHub's Java API:

https://github.com/eclipse/egit-github/tree/master/org.eclipse.egit.github.core

...which is based on GitHub's HTTP-based API, documented here:

http://developer.github.com/

This API allows you to do pretty much everything you might want to do, including adding and removing team members from GitHub Orgs, though I think actually creating new user account still requires the user to sign-up on the GitHub site itself.

best regards,

Roberto Tyley
software dev @ The Guardian


Back to the top