I have managed to use egit to clone one of my C++ github projects. When I get to the end there is a message which says "Select a wizard to use for importing projects". If I select "use the new project wizard" then I can't see any of my data - I get a project with some includes and that's it. I'm struggling to understand why this option exists? Do I have to import as a "general project". I'm not too familiar with eclipse and I find this very confusing.
Sometimes remote repository is empty and all you want is to create a new poroject start developing and then push your code.
If your remote repository allready have code in it just Fetch first then add code and finally push.
Related
when I create a new maven project in Eclipse (version 2022-03) I run into strange problems that I don't understand. Probably I am just too stupid;-)
Let's say I have a project called HelloWorld and I want to put it under version control in the directory d:/git/HelloWorld
When I do that in Eclipse (Team - Share project) I get a dialog (Configure git repository) and when I try to create a repository d:/git/HelloWorld, Eclipse shows me in the target location "d:/git/HelloWorld/HelloWorld" - but that's not what I want.
I'd like to have a separate repository for each project, but directly under the top level directory "d:/git".
I have found out that everything's ok, if I create the git repository in the eclipse workspace but that's not what I want either.
How can I achieve this? What am I missing here?
Strangely if I try to do the same thing in Intellij there's no problem at all
Surely I am doing something stupid - hopefully some of you can explain me what I am doing wrong here:
Thx a lot for your help,
Rudi
If you look at the git documentation here https://www.vogella.com/tutorials/EclipseGit/article.html#firstgit_with_eclipse
you'll find the missing part: you need to create the git repository before sharing. You can use the basic wizard to do 'create new git repository'.
Then when you are ready to share the project, your repository will already be in the selection list for you to pick.
There's this project that has been discontinued that I want to have in my Eclipse workspace so that I can maintain it for my own personal use (the author of the project is fine with this). I have the repository from GitHub downloaded and am trying to import it into Eclipse using this tutorial: https://github.com/collab-uniba/socialcde4eclipse/wiki/How-to-import-a-GitHub-project-into-Eclipse.
After defining the directory of the local repository and clicking "Next", I'm presented with this: Error message
Any ideas on what I could be doing wrong?
I am working on a simple project to learn github. After I worked on my project in eclipse on my local computer, I pushed my project to github for other teammates. A second member of my team pulled this project from github and pushed back to github after making some changes. Now this morning I want to pull this updated project from github to my local machine (eclipse) so I can work on this updated project.
How can I pull this updated project from github to direct into eclipse on my local computer .
I am tried to do:
"git clone http://github.com/testproject/gitDemo.git" but it is not directly going to eclipse. If I save this project on my machine and then try to import into eclipse I got error message, "can not import, there is already one project exist with same name".
I did not see pull option in eclipse under:
Right click on project - team - Pull
Any suggestions??
Thank you in advance for all your help
I'll make one point that I'm not certain you do NOT understand, but as I often see this misunderstood, I'll point it out.
You should separate the notion of "git repository" and "project". When you clone a git repository from github (or bitbucket, or some central repository), you should store it in a directory tree outside of your Eclipse workspace. You then should right-click on the repository and select "Import..." to create a project from the contents of that repository.
Related to that, you should look for the "Pull" operation on the repository entry, not the project. I recommend to display the Git Repositories view on the left side, below the Package/Project Explorer, and make sure that you attempt all git operations in that view, instead of the Package Explorer view.
The only detail from your original post that I can address is the error about already having a project with that name. That error message is not ambiguous at all. You already had a project with that name. I have no idea whether that project was a copy of the repository that you had somehow already imported, or whether it's an empty project, or what. You don't provide any information about that.
I'm part of a team working on a game project and we just moved our project to using Gradle. I can pull, commit, merge and push normally with Git GUI in Windows Explorer, but other members of the team can also pull in Eclipse by right-clicking the Gradle-project folder in Project Explorer view, choosing Team-menu and then Pull. However, in my Eclipse the "Team" settings only give me options to "Apply Patch" and "Share Project.." the whole team has tried to find a solution for this to no avail so far.
Before the project was built on Gradle, I was also able to pull in Eclipse by using the aforementioned method. We're using Git repository.
Any suggestions on where to look for the cause of this malfunction?
Thank you.
I assume then you don't store the Eclipse project files/settings in your Git repository but create them locally using gradle eclipse.
Then after importing the project into Eclipse (be sure not to copy it to the workspace) you can use the Share project... option under Team in the context menu. Then choose Git. Eclipse EGit will automatically detect if your project resides in an existing repository (it should be listed on the next wizard page) and set up the corresponding association.
The term Share project maybe is a bit confusing, as you also do it for projects that already are under version control.
I am working on a fork that I created from a project on Github. I now want to merge changes in the project to my fork, using netbeans.
I read on this page that I need to "remote add" the project to my list of remotes.
However, I cannot find a menu command to do so. Is there one?
In case there is not:
I can of course start a new netbeans project with the main project instead of the fork. But what is the best practice to merge those two then?
In NetBeans 7.4 it looks like you can't just click "remote add" from a menu. It seems you can persist a new remote if you click Remote -> Push and go through the wizard. See also: https://netbeans.org/bugzilla/show_bug.cgi?id=191540