I just signed up for a GitHub micro plan and created my first private repo:
https://github.com/myproj/repo.git
(That's not the real URL). I then installed Egit for Eclipse (Juno), restarted, and tried to import repo.git. When I do so I am getting a Transport Error from Eclipse. Here are the exact steps I took to arrive at this issue:
Downloading eclipse:
Installing EGit:
Importing project from GitHub:
When I try to search for my repo, Eclipse says it's not found:
Trying again, via Git Repository Exploring perspective:
"Transport Error": ?!?!
Being so new to Git, EGit and GitHub, I'm wondering if any of the following are happening:
Do I need to do something from inside my GitHub account/repo (e.g., turn something on, adjust a setting, etc.) to make it "searchable" from inside EGit? SSH keys perhaps?
Do I need to configure Egit somehow?
Am I going about this the wrong way entirely?
The bottom line is: I believe this is the "normal" way to install Eclipse and EGit, so I'm perplexed as to why this isn't working. I'm wondering if it's some bug with EGit and private repos? Thanks in advance.
You can also try Window > Open Perspective > Git Repository Exploring and right click > Paste Repository Path
Not sure whether this is the problem but you may try adding an SSH key. Described here.
Related
I am (finally) in the progress of migrating a svn repository to git. Transforming the repo itself was not much of a problem, but I cannot make Eclipse play well with the result. (I am kinda new to git, btw).
The repo contains amongst lots(!) of other things a subdirectory with java code which I would like to use in Eclipse as the base directory of a project. The SVN plugin offered a wizard I could use (New > Other > SVN > Checkout Projects from SVN > svn://host/repo/subdir), but the Git plugin does not seem to offer such kind of workflow. Its import only allows for repository roots to be entered.
Is there a way to make git do my bidding
without ripping my repo into subrepositories
without creating some kind of git-svn proxy
by somehow connect the project to the repo after creation?
Does anyone have any ideas?
I am running Eclipse 12/2022, Git Integration 6.4.0, Subclipse 4.3
As you are migrating from SVN to GIT personally I strongly suggest you to change also way of working to use GIT in a more efficient way. So I think that you should consider if it's worth to split it into separate repositories (which is my suggestion).
It's like with a mobile phone and a smartphone. It's hard to change standard mobile phone and replace it with a new smartphone without changing your habits and way how you are going to use it, right? Or similar with migration from Windows to MacOS. It's hard to switch to MacOS and use it like it's a Windows system.
However if you are still stick to SVN way of work please read about sparse-checkout:
https://stackoverflow.com/a/13738951/9983181
https://stackoverflow.com/a/2303645/9983181
and git submodules:
https://git-scm.com/book/en/v2/Git-Tools-Submodules
What's the right way of working with an Eclipse Java project with GIT?
I have the plugin EGIT installed and a simple java project. I did a commit/push of this java project by using the GIT bash console. I pushed only the source files.
Is that correct? Should I use Eclipse IDE somehow to make the init, commit and push? I couldn't find how to do this in Eclipse.
How should I retrieve the project from another machine? Should I use GIT console to retrieve the project or Eclipse?
I did the procedure in several ways, but they failed.
The generic answer is: whatever works for you, works.
We have a large git repository, and users with eclipse and intellij.
Some IDE users use specific plugins, such as Egit, others simply use the "default" support that most IDEs are shipped with. Such users simply go command line, or maybe, some other 3rd party tool.
Me, personally, I only rely on the IDE to show me the history of a file, or sometimes to quickly diff to revisions. Anything else I do on the command line.
From that point of view, as said: anything that works for you, works for you. You can use eclipse to manage the aspects of a git repository, but you don't have to.
Personally, I suggest to first get a good book on git, and to then extensively study the command line tooling. You also seem to be confused between the responsibilities of your IDE, and your source code management system.
I am trying to set up a Jenkins Server to build my IntelliJ-project (using BitBucketfor VCS (git)).
I have been able to set up IntelliJ to build correctly locally, and I am pushing it to bitbucket. I have also managed to set up Jenkins to get the code from BitBucket.
The problems to actually doing the build process itself, my problem being that I can't seem to figure out how to set it up with Ant / Maven, which I have never used before.
Any good suggestions?
PS: I am still searching for tutorials or anything that gives some help towards achieving this, and will be updating if I find something that helps.
Jenkins can fetch the code from the repository to its workspace, but it cannot build it for you. You need to give him the tool to do that. Popular choices are Maven/Ant/Gradle to handle project building for you.
You need to refer to the proper documentation for either Maven or Ant. The process is too broad and project-specific for me to go into details here, but Jenkins provides nice integration for both. If you know neither of them, I think I'd suggest Maven, but it's up to personal preferences and project needs.
You should first try to build project locally. Once you acomplish that, doing that with Jenkins shouldn't be a problem.
This may sound too amateur but as a whole i want to configure my Git repository and move my code from eclipse to Github.
So i checked out a couple of video tutorials and applied the steps but none of them seems to work in my case. This is what i did.
1) Right click on the project > Team > Share Project > Select Git > and then this window comes
now when i try to create my repository by clicking on create button> fill the parent directory and the name and click finish. Nothing really happens and i am redirected to the same previous window, without the repository column loaded.
Can anyone help me out of this.
First i thought it to be a Eclipse version issue, earlier i tried on Luna, also after installing Juno its the same issue.
Help me with this. Thanks in advance.
A ways back I had tried to install the M2E plugin to experiment with Maven. The installation did not go as planned and it left me feeling like I only "half-installed" it. My reasons for this were numerous, but for instance Maven features that should have been present upon restart were simply not there.
I am now trying to download a plugin called EclEmma which is a code coverage analysis tool. The official website has the installation instructions very well spelled out, and I have followed these instructions verbatim.
In the Help >> Install New Software window, I am able to visit the EclEmma update site and select the plugin I want to install. I then click the Next button, whereby I get the following error:
The operation cannot be completed.
Cannot complete the install because one or more required
items could not be found.
Software currently installed: Shared profile 1.0.0.1320083707332
(SharedProfile_SDKProfile 1.0.0.1320083707332)
Missing requirement: Shared profile 1.0.0.1320083707332
(SharedProfile_SDKProfile 1.0.0.1320083707332) requires 'org.maven.ide.eclipse
[1.0.100.20110804-1717]' but it could not be found
According to EclEmma's site, there are no dependencies or prerequisites for this download, and certainly nothing from Maven.
I think I must have mis-installed M2E all those months ago, and somehow it is causing EclEmma to tweak out during installation.
I have now spent an hour trying to figure out how to un-install M2E, but: (a) when I go to the list of installed plugins, the "Uninstall" button remains disabled and I am unable to get it to become enabled, and (b) most of the documentation I've found online seems to suggest that uninstalling plugins is discouraged and possibly even impossible!
How do uninstall M2E? Or at least disable/deactivate all its features so that I can get EclEmma to install? Of course, I could be misinterpreting the error message above...
Thanks for any help!
You might be able to revert Eclipse to a previous configuration of plugins/features, see Reverting to a previous install configuration