I have tried to move SVN project to Git.
I have created a remote REPO and pushed my project there.
Whenever I open Eclipse Europa I keep getting a message about SVN credentials and I can't get rid of it; after the Cancel button is pressed, the same window appear again.
How to get rig of the nasty window?
I have deleted hidden .svn folders and tried steps suggested in this article:
http://www.thinkplexx.com/learn/howto/ide/eclipse/fix-eclipse-svn-always-asking-for-login-and-password-clear-keyring-or-cache
Create a new workspace (e. g. by using the command line argument -data) and import your project(s) from the old into the new workspace.
Related
I am using git to check in codes from eclipse and my project uses "SparkChat.jar" for it's chat feature. I modified the code for sparkchat a little and generated an updated SparkChat.jar, but when i tried checking in, git doesn't recognize that SparkChat.jar has been modified.
Is there anyway i can 'tell' git that SparkChat.jar is dirty and needs to be checked in?
Edit: To clarify, i am using EGit implementation in Java Eclipse, not command line.
Hit the Refresh button in the toolbar of the Git Staging or Git Repositories view to synchronize Eclipse with the changed files of the file system:
If it is a file in a project, a Refresh (F5) in the Project Explorer or Package Explorer should also work.
It seems, there is a bug (or intended "feature"?!?). You have to close and reopen Eclipse! :-( That's the only way with my Eclipse to see file system changes in the 'Git Repositories' Windows! :-((
I had a Scala project, synchronized with GitHub. Then I had to reinstall my OS. I installed Eclipse and EGit, then imported the project from the remote location.
Now, when I make changes to the project, commit does nothing. It does not open the dialog which lets me enter a message and select files to commit. The files are still displayed as changed in the package explorer. I read somewhere that EGit logs errors to stdout, but when I start Eclipse from the command line, I see no errors logged.
If I try to push, I get asked for the passphrase for my ssh keys, and there is a window with a progress bar, but then the content of the remote repository does not change.
I am quite new to Git and don't know where to go further to diagnose the problem. What I did was to get into the Eclipse preferences and restore the defaults on preferences windows in the Git group. This didn't help.
One thing which I noticed is that the project itself is in the git directory, so when I make changes to the code and save, they get written there, not under the workspace directory of Eclipse. I don't know if this is relevant (maybe it can't write the changes to the local repository because there is no local repository copy to be updated?), but I didn't see a setting to change this location when I imported the project.
What can I do to troubleshoot this problem?
I accidentally made a mess of and then deleted a java project from eclipse (more specifically, I accidentally moved the classes to a different project and then moved them back, and then deleted the project [from the file system] in eclipse), and now whenever I try to do team -> pull (after running ant -f ...), a window pops up saying that there's a checkout conflict with the files that were deleted. How do I get past this conflict and make pulling work again? I could create a new workspace, checkout everything into there again, and copy the code that I'm currently developing into that workspace, but there must be an easier way. Please educate this git n00b.
Open the "Git repositories" view (Ctrl 3 -> git repositories), right-click your project, select "reset".
In the following dialog, enter "HEAD" in the "Reset to (expression)" field and select Hard.
This will completly reset your workspace to pristine state.
Now, reimport your deleted project (File -> import... -> Existing project")
Now everything is back to the state before your "mess" and you can pull again.
I've created a new project on OpenShift and cloned it locally. But now i'm having problems adding new files and folders to git index. Right click on the new folder (with files and subfolders) in project explorer and choosing Team -> Add to Index, changes nothing. And if i try to commit, Eclipse says that there aren't any changes... (If i only update existing files, everything seems to be fine).
What could be the problem?
Make sure that you have the "Git Staging" view open, and right click on the file in your Unstaged Changes and Select "Add to Index", also make sure that the file is not empty, it did not show up as a staged file until after i added some content to it, even after I had added the file. (Can't add empty files or directories to git with EGit maybe?)
this sounds like EGit missing new files. I'd love to know a bit more about your setup:
Where did you clone to, where is your Eclipse workspace?
To make sure your git setup is right I suggest that you do the same with the git command line:
cd [git-repo]
git status
Git status should list the new files and tell us that they're not added yet. If they get listed, then we know that your git is set up right and we can get back to Eclipse to try to figure out what's wrong with it.
Found out what the problem was (kind of stupid though). The folder that contained new content was listed in .gitignore ... but that file isn't accessible through eclipse, i had to look it up on filesystem. I also don't have a clue, how that line came to .gitignore...
Well, that's it...
I have been using Egit and Eclipse together for well over a year. I recently upgraded my computer and had to reinstall everything. Previously whenever I would make a change to a file it would immediately get picked up by Egit and show with the red highlight and star next to the file name in the project explorer.
I have everything back up and running exactly as it was, however whenever I make a change the change is not picked up by Egit. I have to perform a 'git status' in order for the files to show as ready to be staged in the file explorer. Am I doing something wrong to have Egit automatically detect changed files and has anyone else had this problem?
which version of EGit are you using
do you get the egit team menu if you right-click any resource in your git tracked project ?
if not then you need to do "Team > Share > Git", then check "Use or create repository in
parent folder of project". If you are using a very recent nightly build version this
will be checked automatically.
when you modify a file tracked by (e)git a text decorator ">" should
appear in front of the modified file
as soon as you stage the modified file (Team > Add) the decorator should show the star
also the staging view should always show the git status for all modified files
You need to "Add to index" all files again probably
Track Changes Click Team > Add on the project node. (This menu item
may read Add to Index on recent versions of Egit)
(From the EGit docs:)
What I've found is that you need to make sure that your git repositories are showing up in the Eclipse Git Repositories view.
In the repositories view, you click on the [very] little Git icon with a green + (plus) sign to Add and Existing Local Git Repository.
Browse to the directory that already has a .git subdir and click Finish. You should then see you local repo show up in that list.
Then you can right click on the repo while still in the repositories view and add pull down to Import Projects.
"Import existing projects" is selected. Click Next.
Your project should be checked off. Add it to a working set if necessary. Click Next (maybe Finish).
I had a similar issue where all my changes just disappeared. Somehow, Eclipse had unselected my Git repository. Once I selected it again, they all came back.
If you have already added your files to Stage then change the branch it will ask you to commit/stash/reset
I faced the same problem. From your git repository view: Right-click -> Show in git staging
For me I have clicked Team --> Advanced --> No Assume Unchanged, fixed the issue
I faced the same problem using eclipse version 2021.12. Whenever I made changes on file, the eclipse didn't detect it.
I solve it by using Intelij IDE.
i just faced this problem by now, and i resolved by clicking in button Refresh in Git Staging: