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
Empty rows in report when using count function
I am using BIRT reporting with my mongodb datasource. I am trying to COUNT some events. COUNT function gives the correct value but there is big empty space at the end of the page depending upon the count value. If the count value is big then the rest of the page is empty and on the next page same record is coming e.g. : In this Image the rest of the page is empty and same record is coming on the next pages also. It looks like empty spaces are being printed.
This is how my report looks like :
The COUNT function:
I have tried using SUM also but I get this error when I use SUM function instead of COUNT :
org.eclipse.birt.report.engine.api.EngineException: A BIRT exception occurred. See next exception for more information. Can not convert the value of True to Double type. at org.eclipse.birt.report.engine.executor.ExecutionContext.addException(ExecutionContext.java:1245) at org.eclipse.birt.report.engine.executor.ExecutionContext.addException(ExecutionContext.java:1224) at org.eclipse.birt.report.engine.executor.DataItemExecutor.execute(DataItemExecutor.java:101) at org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportItemExecutor.execute(WrappedReportItemExecutor.java:46) at org.eclipse.birt.report.engine.internal.executor.emitter.ReportItemEmitterExecutor.execute(ReportItemEmitterExecutor.java:46) at org.eclipse.birt.report.engine.internal.executor.dup.SuppressDuplicateItemExecutor.execute(SuppressDuplicateItemExecutor.java:43) at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.execute(HTMLAbstractLM.java:468)
Please help, thanks in Advance.
Passing data to SQLite from an AlertDialog
When i click a item in a listview it display another activity with details about that item from android sqlite database. I have a option menu on the details activity. When i click that, it will show a alert dialog to get id and status from user. I want to update that status in sqlite where id is equal to that input given in alert dialog. Getting both id and status in alert dialog and update in sqlite![enter image description here
Weblogic 12.1.3 error connecting domain with Eclipse (OEPE 12.2.1..2.1)
Suddenly I am getting problem connecting Weblogic 12.1.3 with OEPE Mars, When I am trying to run server its giving:
Error Connecting Weblogic Default Domain
However, I have de-installed Weblogic/JDK1.8/Eclipse and did fresh reinstall. Earlier it was working fine with the JDK1.8.
However, again I have de-installed Weblogic/JDK/Eclipse and reinstalled with updated version of Weblogic 12.2.1 with JDK1.8.162 (latest JDK8) and OEPE Oxygen to keep JDK version same in all the environments.
Now while I am trying to create server in Eclipse its giving me message:
The Path C:\Oracle_JDeveloper12.2.1\Middleware\Oracle_Home\wlserver doesn't contain a valid Weblogic Server Install or installed version is
I have installed JDeveloper 188.8.131.52 that comes with integrated Weblogic.
Any help will be appreciated.
How to access my github repository[in initial github account] with multiple other github accounts that I have
I want to access my repository JavaProject, in my original github account - firstname.lastname@example.org
As I am new to github, and need to practice all git commands before I work on my client project(also in github), I have created multiple github accounts for the purpose of accessing a repository - I want to practice - push, pull, branching, resolve conflicts, etc all the daily github developer tasks
I have created SSH keys for all the other github accounts and updated the SSH keys for each account in the original github account - email@example.com
Please guide me on accessing my github repository that's there in the original github account(firstname.lastname@example.org), using the other github accounts that I have - email@example.com, firstname.lastname@example.org, email@example.com, firstname.lastname@example.org, etc.
git submodule add taking longer time
My submodule repository is morethan 2 gb. whenever i do adding the submodule to my localrepo its cloning the entire submoudle remote repository.
git submodule add -f -b localbranch https://mygitserversuperprojecturl/server.git .submodule/server_git
result:- Cloning into 'submodule/server_git'...
so usually it takes morethan 1 hour to get complete could anybody help me to add particular branch without adding the entire submodule remote repo.
git verison 184.108.40.206
error: failed to push some refs to 'email@example.com:<name>/<project>.git'
Hi I'm a total newbie using git I read a few StackOverflow Q&A on this error but didn't understand how my problem relates to others with the same error message. So I didn't dare to chance it and loose 6 hours of work that I need to push to my remote GitHub repo.
1.) The Beginning
So my code in the local working directory got broken and I couldn't figure out what the problem was. So I wanted git to go back to the latest working version of my project. I then found this tutorial and managed to get my local project to go back to a working version. https://www.git-tower.com/learn/git/faq/restore-repo-to-previous-revision
$ git reset --hard <SHA-1 HASH NUMBERS>
2.) Trying to push
These are the commands I usually follow when I want to push local code to my remote repo.
# Pushing Changes - Staging $ git diff $ git status $ git add -A $ git status $ git commit -m "Modified multiply function." # Pushing Changes - Repository $ git pull origin master $ git push origin master
3.) The error
I don't understand what the error message is trying to tell me. Can somebody help me by showing what sequence of commands I need to run to be able to push code like usual again?
penguin@linux$ git push origin master To firstname.lastname@example.org:<name>/<project>.git ! [rejected] master -> master (non-fast-forward) error: failed to push some refs to 'email@example.com:<name>/<project>.git' hint: Updates were rejected because a pushed branch tip is behind its remote hint: counterpart. Check out this branch and integrate the remote changes hint: (e.g. 'git pull ...') before pushing again. hint: See the 'Note about fast-forwards' in 'git push --help' for details.
How to Avoid committing to Master in Eclipse
I committed and pushed changes to the Master branch in GIT today using Eclipse. In our team it is a strict "No".
While I know I have to be careful while pushing any changes to the Master and double check which branch I am working in. I was wondering if there is a way to check the branch and throw a warning if one is working in the master and trying to commit.
Is there a way to set a preference or throw an error message.
egit project + branch name huge font on Git Staging tab
I have a second display at work, when I went into the EGit tab I found that the text was too large on the project + branch name. For privacy reasons I edited out the project name bust still left the branch to show what I mean:
I've tried changing
General > Appearance > Colors and Fonts > Gitfonts for every option there without result. As well as
General > Appearance > Colors and Fonts > View and Editor Folders > Part title font
Is there anyway to make that text smaller? I mean it takes too much space there