I am a noob at both GitHub and IntelliJ, please answer in that context and be patient.
GOAL:
I need to create a repository for my IntelliJ project in my organization, not my personal account, and be able to Admin it.
NOTE: I do NOT have admin rights for the organization, but I can create projects on it through the GitHub interface and setup a team for it with Admin rights. So, the goal should be feasible.
PROBLEM:
I am using IntelliJ (and its integrated GitHub support, not a separate windows github app install).
When I use the IntelliJ "Share the Project on GitHub" I am not given the option to choose whether to place the repository in the organization, it automatically places it in my account's list of repositories.
Then if in the GitHub website I try to transfer ownership from my account to the organization, it moves it but I lose all Admin rights. I tried to add a team I defined in the organization as collaborators to see if I could grant myself Admin rights through the team before I transfer ownership but the team does not appear.
2nd (related) PROBLEM:
Files committed from IntelliJ show as successful in IntelliJ but do not display in the Code section of the GitHub website. The message in that page mentions creating or uploading a file even though in theory IntelliJ did that.
QUESTION:
Is IntelliJ's GitHub integration usable, especially for organization-based repositories? Or should I install the windows command-line GitHub app and do all of my version control from there?
If the first, is there a good tutorial for creating org-based repositories in IntelliJ?
SOLUTION (I figured it out):
Create the project repository inside the organization.
Click on the repository to open it. Copy the URL.
In IntelliJ create a new project from VCS. Past the URL and hit CLONE.
Add your project contents, commit and push.
Much simpler than I expected... once figured out.
Related
In my previous Github repos, I was able to create a project under the repo which was specific to the repo, but now I cannot see this option for the new repos.
I can still use Project (Classic) in my previous repos.
Github now push me to create a project under my account, and link to the repo, but I want to create a project just under the repo.
In my side, the problem is that, when I try to create an "Issue", the user can see all of my projects under my account, but I don't want that.
The user should only see the related project.
Can I somehow have the previous version of the projects?
Thanks
I've set up a public GH project board that I wanted to share with some people, but when they fork it, only the code transfers over and their project tab remains empty. How can I share this so people can use it? I tried setting it up as a template but that didn't help.
I never seen the notion of "fork" for a project board. Only link.
See "Linking a repository to a project board"
Anyone with write permissions to a project board can link repositories owned by that organization or user account to the project board.
You can link up to twenty-five repositories to your organization or user-owned project board.
Linking repositories makes it easier to add issues and pull requests from those repositories to your project board using Add cards or from the issue or pull requests sidebar
I don't believe GH can do this. Gitlab can.
I created a Github account earlier this year when I first started programming and didn't really know what I was doing and now I'm wonder if there is a way I can tidy up my account. I would like to create a repository and move all of my class projects into it, similar to throwing a bunch of files on your desktop and then cleaning it up by creating folders to drop the files into.
Sure.
I recommend you start by downloading GitHub Desktop, which is a user interface that will allow you to manage your Git repositories.
Works on Windows and OSX.
Recently I tried out the new TFS-Service, and really liked the built in Scrum template for project management, and the new ability to create a team project managed with Git.
It would seem that the Git integration is only possible when using Visual Studio on windows though. Using Eclipse (with the Team Explorer plugin) I was unable to work with a git-based team project.
Is this really the case?
Heres what I've tried:
In TFS Service, I have a git-based team project with some commits in it.
In Eclipse, I connected to the team project, but it seems I can't pull or even see the source in any way. Source control explorer doesn't show any code (or any paths even).
In TFS, I created a new git-based team project. In Eclipse I created a new project and used Team -> Share... to try and get the code into TFS. But selecting TFS there doesn't seem to have the disired effect: it doesn't understand that it's a git-based team project, and so it doesn't try to push the code with git, but upload it to a new path ($/some/path/here/).
So is that it, or perhaps there's a workaround? Maybe I did something wrong?
BTW - I know about using TFS with git-tf, and I'm OK with that option, but it's not what I'm asking.
Thanks.
We're working on improving this for the next major version of Team Explorer Everywhere (TEE), but this is what you'll want to do today.
Eclipse already has a full featured Git version control provider in the eGit plugin. This is installed in many versions of Eclipse but if you do not have it you can install it from here:
http://marketplace.eclipse.org/node/1336
To use eGit today against the hosted service you must enable alternate credentials in TFS (click on your name in the top right corner, My Profile, Credentials then enable and configure your credentials).
Once this is enabled you can point eGit at your service account repo and you are good to go. In the Import or Share wizards pick Git and then follow through th eGit dialogs.
When you make a commit, if you add #123 into the work item comment it will associate the commit with that work item number when you push it to the server.
Now, I mentioned that we are trying to make this better. What we are aiming to do is show you both your TFVC and your Git related projects when you import and share and if you have picked a Git repo then we'll help you get your credentials set up, clone it and get the version control parts of Eclipse hooked up to eGit (assuming you have eGit installed). We'll also make sure that the other Team Explorer Views (such as work items, builds etc) all work great and that links to Git commits etc do the right thing. Hope that makes sense - but if anyone wants to talk more about how Git projects will work in future versions of Team Explorer Everywhere then feel free to drop me a mail (martinwo#microsoft.com)
I am creating a totally new OSS project for my organisation and I want to host it on GitHub. The project will be developed using Eclipse and I am using EGit. I have no prior experience with Git, as I've previously only used SVN.
Here's what I did so far:
Created a new account for my organisation on GitHub. (I already had a personal account.)
Created a new repository under my organisation's GitHub account for this project.
Under the new repository's "Collaborators" section, added my personal account. (I verified this in my personal account.)
Installed EGit into my Eclipse. (I am using Eclipse 4.2 with EGit 2.0.0)
Created a new Eclipse project in a new Eclipse workspace. (It's a Maven project so I created it through m2e but that shouldn't make a difference.)
Added the new Eclipse project to a new Git local repository (via Team -> Share Project).
Created the .gitignore (ignores Eclipse-specific files and directories).
Added source to the project (via Team -> Add to Index).
Committed local changes to my local repository.
Copied the HTTPS URL from GitHub.
Team -> Remote -> Push
The URL from the clipboard was already taken and most fields populated.
Entered username and password for my GitHub personal account, clicked Next, data was fetched successfully.
Selected "refs/head/master" from the Source ref dropdown (I didn't understand this entire page, maybe I've put something wrong?)
Clicked "Add Spec" and then Next
At this point, I got the error "master: master [rejected - non-fast-forward]"
I searched on Google, but the suggested resolution was to do a Pull. I tried "Team -> Pull", but got the error "The current branch is not configured for pull; No value for key branch.master.merge found in configuration"
Can anyone help me? My remote repo is still empty (save for the .gitignore and the README.md). I want to get files from my local into that remote repo!!
That looks like there is already committed content in your Github repository. I don't exactly know what is going wrong, but I would do it different:
First install Mylyn and the Mylyn GitHub connector in Eclipse. That way you can access github repositories much easier.
Use the Mylyn Github connector to clone your existing (assumed to be empty) Github repository into a new local repository (File->Import->Git->From Github). That is the easiest way to verify your login credentials, ssh keys and so on.
During the previous cloning step, the github repository was automatically added as "upstream" repository reference to your local repository. So if you now add files to your local repository, you can commit them and afterwards use "Push to upstream" to make them available on Github. No configuration of the remotes and refspecs is necessary in that case.
Now create your new Eclipse project and share it using the Team -> Share, where you select your existing local repository.
Everything beyond that would be as you already described.