My team and I are working on a project.
I'm new to git. My friend set up egit on eclipse and created a repository.
How do I get the project from that repository?
PS. We don't want to post our project online anywhere. We don't want to post it on github either.
In the right bottom of the project page you can download the project as zip file.
you unpack it, and import("files" menu) it via eclipse.
in the settings of your project(github) you can set it to private or delete it, but i think the private setting needs you to pay.
alternatives could be an ftp server or perhaps a drop-box. but it won't be as easy to combine your work with that of the others.
Related
I tried to share my Java project via IntelliJ to GitHub. In this case I choose VSC/Import into Version Control/Share Project on GitHub and go through few windows. But at one where I should provide repository name and its description I cancel the operation. But the repository was shared... So I removed it via GitHub webpage. I tried share it one more time via IntelliJ, but I get Project is already on GitHub info. How can I solve this situation?
Go to your project physical location and find .git folder(hidden, right click open in new window, if you have problems on mac). You might need figure out how to show hidden folders/files on your OS.
Find file "config"
Delete section(s) [remote "name"]
Try to share again
Enjoy )
Then manage remotes
then delete here
I am in need of help in trying to setup Eclipse so that I can push my code onto my GitHub account. I've searched online and the tutorials I have found are either outdated or don't work for me.
I already have a project on Eclipse. How would I put that code onto GitHub? Would someone please add detailed instructions please. Any help is appreciated.
EDIT
As soon as I posted this question, and fiddling around with the settings I managed to get it to work! What a coincidence...
The only problem I have now is how do I set it up so that when I commit it will only select the files in the project folder? Right now it is showing all 600 files in the Package Explorer.
Alright, there are several ways of doing this. I found this to be the easiest way:
First, set up SSH2 configurations. Go to Windows->Preferences->General->Network Connections->SSH2->Key Management and Generate RSA Key. Save Key
Copy that key. You will need to go to your GitHub account settings and add the new SSH key to your account.
Now, you need to install eGit:
Next, you want to add the Git Repositories view:
Create a new Git Repository. I have already created a repository called Java. I will refer to that repo for the rest of the explanation.
After you create your repository, it should show up in the Git Repositories view. Now to add your project to the repository, right click on your project and select Team->Share Project.
Select the repository you just created. You can also use CTRL+ to select multiple projects and place them in one repository.
Now go back to your Git Repositories view. Go to Remotes . Right click and select Create Remote.
Select Change... and enter the SSH link for your Repository on GitHub.
For connection, select SSH. Then press Finish.
For Rev-mapping, select Advanced....
For Source Ref select refs/heads/master. And then press Add Spec, then select Save specifications in 'origin' configuration. Then press finish.
That's pretty much it. You can commit changes by right clicking your project - >Team->Commit...`
Push new commits to GitHub:
This is a really good explanation on how to set up Eclipse pull requests.
The current branch is not configured for pull No value for key branch.master.merge found in configuration
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 have developed a part of application now I want to add my project to SVN repository for that
i did
File->Source Control->Repositories
Add Repositories
Added repository sccessfully, but when in project root I right clicked to add project to repository it showed all disable option of source control.
How can I add my project to SVN repository, please help
while repository is added
Would you not just place all of your files into your trunk manually and open the project from there, and then set up your repository in Organiser. The files would all already be there, and then you can right click on the file you have changed and commit it from there.
I also like to use public repositories such as Google Code to store my repositories, which is especially helpful in case of data issues when working with lots of people on the one SVN project.
I have an account in ProjectLocker and a project in MyEclipse.
How to upload this in ProjectLocker?
I'll make the assumption that you want to use Subversion, as I don't know what support MyEclipse has for Git.
ProjectLocker's Subversion is 100% standard, so adding a project is the same as it would be for any other Subversion repository. The URL for projects of which you are a member is presented on the home page. You should be able to right-click on your project, select Team. . . Share Project, and then add the ProjectLocker repository with the URL, name, and password you were issued. This connects your local project with the ProjectLocker repository, and then you can add and update files as you see fit.
If you already have files uploaded, you can use the SVN Repository Exploring perspective to find the project and directory and check out a new project.
ProjectLocker offers subversion and git repositories. First you obviously have to decide for one or another version control system and add the required plugins to eclipse (for subversion or for git unless MyEclipse already has the connectors).
Then it's pretty straightforward - add your repository (ProjectLocker should provide you the correct URL) and share the project.