GitHUB with Private Repository from Organization

已回答

For some reason I can't find simple directions on using IntelliJ with my Organization. I am currently the owner of this organization.

Here's where I am:

     I have a project on my local machine.
     I want to publish this into GitHUB into a private repo of my organization
     I have created this private repo on the GitHUB site.
     I have installed Git locally and put my GitHub credentials in

When I go to VCS->Share->Import into Version Control->Share on GitHUB I have the private repo checkbox grayed out.

All I want to do is push this code into a private repository for my organization. What am I doing wrong?

thanks!

R.

2

Hello Robert,

unfortunately currently organizational accounts are not supported yet (http://youtrack.jetbrains.com/issue/IDEA-74859).

But that only means that we don't provide handy mechanism on cloning our project from Github or sharing it there.

You still, of course can push by using the Git Integration.

1. First, add the github remote and make the initial push as stated in "Step 3: Push your commit" section of the GitHub tutorial:

git remote add origin <repository url>
git push -u origin master
(-u is recommended in the last command to set up branch tracking at once).
2. Then you may use Update Project, Push and other operations from the IDE.
0

Is this still not supported???

I have a GitHub account with some repositories and an organization within that account which has repositories as well. I can't find a way to clone the repo belonging to this organization. How can I achieve this?

0
Avatar
Permanently deleted user

How did you manage? When I want to checkout from version control via github, my repositories are not listed there.

0
Avatar
Permanently deleted user

@... I was surprised but if you generate a token following Dirk's suggestion https://www.jetbrains.com/help/idea/github.html#register-account vs using "Login with github" it will pull the team/org private repos.


0
Avatar
Permanently deleted user

I still couldn't clone a private repository from a organisation even with the token generated. I could fix this by checking the option "Clone git repositories using ssh" under Preferences -> Version Control -> GitHub

0

Please feel free to submit a support ticket in case if you face any issues with clone from a private organizations.
https://www.jetbrains.com/support/

0

In the settings on Github.com, access to the organizations must be granted for the Jetbrains IDEs.

1. Login into GitHub.com in PHPStorm / Rider or something else

2. Open GitHub.com in your Browser -> Settings -> Applications -> Authorized OAuth Apps

https://github.com/settings/connections/applications/58566862bd2a5ff748fb  

https://github.com/settings/applications 

It's also required if you want to use Gitkraken with GitHub organizations.

 

14

Thanks André Lindner, you saved me some hours I guess. 

2

Yes André Lindner, that's the one! Thanks a lot!!!

1

Andre', your suggestions seem to be the closest to working for me, but I am starting to suspect that IntelliJ's integrated gitHub is totally broken and useless:

- If I follow a tutorial on how to sync projects from IntelliJ to GitHub it creates a workspace under my account but I see none of the code that is committed through IntelliJ on GitHub's website, I just see the project (even though IntelliJ tells me it succeeded).

- When GitHub pages tell me to execute a command I go to IntelliJ's terminal to do it... and the command is not supported.

- When I login using a token as you suggest, I see a success and it even mentions my organization.  But it still creates the repository under my account instead of the organization.

- If in GitHub I try to add a team from my organization to the repository that is under my account... the team does not show as an option.  I wanted to do this to grant the team (to which I am a member) admin rights before transferring ownership to my organization.

- If in GitHub I transfer ownership from myself to the organization... I lose all admin rights as I am no longer the owner and thus can't do a thing with the project anymore.  Sadly, I am not the owner of the organization to grant those rights back to me and my organization is horribly bureaucratic, so it would take forever to get those accesses back and it is not viable at all if I have to do rely on them for every single project.

I must say this is driving me nuts.  I know I could open a ticket with IntelliJ, but my experience with their support team has been horrid... I've easily opened a dozen tickets on different topics and I think I didn't get a usable answer even once, only uselesss cookie-cutter replies one after another that the only thing they accomplish is to waste days of my time.

QUESTION:

Is my only viable option - to do team-based GitHub integration - to cave in and install the github app on windows and use it independently from IntelliJ at the command line?  (I know it is a stupid approach... but I can't think of anything else if IntelliJ's integrated support can't be made to work)

Or do you perhaps know of a GOOD tutorial that teaches how to integrate IntelliJ with organization-based GitHub repositories?

 

SOLUTION:

I figured it out.  Create the org-based repository on github directory, copy the repository URL from there, then use it to create the project in IntelliJ "from VCS".

1

I have followed André's suggestion and it worked for me. 

In fact, I had tried many other useless ways but grating permission for the organization did the trick

Many thanks

1

请先登录再写评论。