Why does eGit create an extra directory in the remote repo when I do the first commit/push?
Using eGit... When I perform the initial Commit and Push from Eclipse, a new directory appears in the remote repo. Inside that directory is the root of the project directory. It makes a big mess because when someone clones it (again using eGit) the src folder is munged into a name containing then project folder name, which mucks up the package references in the class files.
eGit assumes you don't want an entire git repository for a single workspace project. Doing so would be wasteful and cumbersome for almost anything nontrivial. https://wiki.eclipse.org/EGit/User_Guide#Implications
You also didn't commit the
.classpathfile, which would have indicated what the source folders were.
See also questions close to this topic
Is there a way how NOT share plugins between installations of Eclipse?
I used to have several Eclipse installations, and workspaces, with optimized set of plugins for a particular job - for PDE development, for Scala, for experimental plugins, modeling tools, JBoss and Spring integration etc.
I like the convenience that nowadays all plugins are available in any workspace but also with every installation. Too many plugins still cause Eclipse to start slower, experimental plugins tends to be buggy and cause issues even when they are not actively used, polluting menus etc..
With newer Eclipse versions trick with multiple installations cannot be used anymore. The plugins are shared across all installations by default. They are installed in "pool", a directory outside installation, in something resembling Maven local repository.
Eclipse now has Oomph, P2 Agents, P2 Bundle Pools, Oomph (?) profiles. Can I use any of those to restrict number of available plugins?
How can I create a project in the Git repository root using Eclipse EGit?
I would like to add the project files of a brand-new Eclipse project to the root-level of a git repo. I would like it to look like something like this:
./projectrepo/.git ./projectrepo/.project ./projectrepo/src ...
However, the Eclipse Egit wizard provides no obvious way to do that, and insists on creating an undesired subdirectory (screenshots below):
./projectrepo/project/.git ./projectrepo/project/.project ./projectrepo/project/src ...
How can I get Eclipse to add my files at the repository root?
I understand that the Egit manual advises against this, but I do not plan to ever have multiple projects in this repository, so the extra directory is unnecessary (and counts against filesystem path limits on Windows). The fact that it's advised against tells me it must be possible somehow (or the documentation's wrong).
Windows 7 64-bit
Eclipse Oxygen Java EE (4.7.0 Build id: 20170620-1800)
Eclipse EGit 188.8.131.52706111038-r
Screenshots of Eclipse's current undesired behavior
Configure Git Repository wizard. Most of the things I'd like to change, like
Target Location, are uneditable.
Path within repositorycan only be used to add more extra folders.
Use or create repository in parent folder of projecthas a freetext repository path input, but only parent folders will validate and can be used.
How do you create a historical record of audio files played using access within java?
I am creating a media player and I am looking to have a playlist of songs. I want the player to store a historical record of the songs played.
- Jekyll problems with publishing on GitPages
Find most followed repos in GitHub
How can I find the most followed repos in GitHub?
I know that you can see the most starred using
stars:>1and sorting by stars or I can see the most forked repos sorting by number of forks as explained here, but I can't find a way to get the most followed ones.
how to allow subdirectories in git repos with npm install
I am trying to access the subfolder in following repo
I am trying to access following
So i looked at this thread https://github.com/npm/npm/issues/2974 and trying to access it from subfolder and added entry in
"test-images": "git+//github.link/to/test-images/tree/master /package/test-image"
When i run
npm installi get error
npm ERR! Could not install from "git+//github.link/to/test-images/tree/master /package/test-image" as it does not contain a package.json file.
There's no package.json in root directory
But package.json is there in sub directory
What am i doing wrong?
- How to uninstall EGit
Github checkins overrides changes when latest is not taken
My team has the repository stored in GitHub. If a file (file1) has been modified by developer1 (in local repo) and committed to remote repository. Now another person (developer2) modifies the same file in his local repo without syncing the latest from remote repo, the changes get committed to remote repo (force pushed). There is no warning from GitHub remote repository or the git client (we use Tortoise Git client or eGit). Please suggest if there is a way to prevent this by making any setting changes in remote repository or the git client.
Probably some settings in git hooks needed?
Eclipse can't connect to Git remote repository with "not authorized" message
I'm using the egit plugin, and while I'm trying to do team -> Pull for a java project in Ecplise, already imported from a remote Git repository, I get the following error stack strace after I enter my credentials :
org.eclipse.jgit.api.errors.TransportException: http://server:8080/tfs/project: not authorized at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:250) at org.eclipse.jgit.api.PullCommand.call(PullCommand.java:293) at org.eclipse.egit.core.op.PullOperation$1.run(PullOperation.java:200) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2240) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2267) at org.eclipse.egit.core.op.PullOperation.execute(PullOperation.java:232) at org.eclipse.egit.ui.internal.pull.PullOperationUI.execute(PullOperationUI.java:176) at org.eclipse.egit.ui.internal.pull.PullOperationUI.access$0(PullOperationUI.java:168) at org.eclipse.egit.ui.internal.pull.PullOperationUI$1.runInWorkspace(PullOperationUI.java:141) at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:39) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56) Caused by: org.eclipse.jgit.errors.TransportException: http://server:8080/tfs/project: not authorized at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:531) at org.eclipse.jgit.transport.TransportHttp.openFetch(TransportHttp.java:341) at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:137) at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:123) at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1236) at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:239) ... 10 more
Here is my session data :
java.version=1.8.0_151 java.vendor=Oracle Corporation BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=fr_FR Framework arguments: -product org.eclipse.epp.package.jee.product Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.jee.product
What could be causing this problem ? I've already searched this but found no clear solution