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.
Related
I am currently trying to get the git annotations in eclipse mars for a Java file, to see when a line was changed. In Luna, this worked (and still works) with Team -> Show annotations. In Mars, this does not work for me. (Also after reinstall and on a different computer). For other files, for example the pom.xml of the maven project, this works. The project is, besides, this problem, working and compiling fine in eclipse and was created based on the pom.xml in eclipse. Also when the project is created via mvn eclipse:eclipse, show annotations is not working.
I've read the settings with Ignore whitespace changes and Preferences > General > Editors > Text Editors > Annotations > Errors > Show in > Vertical ruler (Show annotations not working), which are correct. Also closing and reopening the Java perspective did not work (https://www.eclipse.org/forums/index.php/t/1011988/). I could not find any other recent threads about this.
Is there some configuration for Java that I am missing, or is this an eclipse bug?
Right click on the file . Team -> "Show Revision Information" - in
Eclipse Neon.
Right click on file -> Team -> Show Annotations. - In previous eclipse versions
I had the same problem. Did you check if your Git repository is imported correctly? For some reason mine wasn't.
Check the Git repositories view (Window > Show view > Other > Git > Git Repositories). If you cannot see the repo there, add it and afterwards you should be able to choose "see annotations" under team.
A little bit old, but maybe to close this question.
You will have to "share" your projects.
Right click the project/projects -> Team -> Share Project.
I did select all relevant projects first and then right-clicked to share the projects. Sometimes this does not work, if a project is in the selection list, that has different porperties.
This will connect your project with your git repo.
Good luck.
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.
I was trying to use SVN today as i was doing all my changes in my webproject on the same folder/files, so wanted to try SVN for version control. However when i installed it and tried to create a repository named "project"...however my servlets/JS files/JSP files folder(package) is also named as Project...
Suddenly after i create the SVN repository i don't see all the work i did..all my .class file and everything else is wiped out. I went to Eclipse workspace i see nothing but .svn...Can someone please help me how to retrieve my work? It is many hours worth of work.
Thanks for your help!
First You can commit your projects by using tortoise svn after creating one repository in SVN.
Second you can checkout your project with eclipse.See this article to connect SVN with eclipse.
I'm building an Android app.
I worked today on my app, and suddenly I saw that all the projects in the workspace are marked with an error. I don't know what caused it, and I can't find explanation of the error anywhere.
I'm using Helios with Windows 7. I even tried downloading Eclipse again but it didn't help.
Today I tried to integrate Facebook with my app. Their tutorial required me to try to get a hesh key from a keystore. In the process I added an Environment Variable named JAVA_HOME, and pointed it to the JDK.
I don't know if it's the cause of my problem, but I think it might be related.
I really don't know what to do.
Thanks!
Try this. In eclipse, go to Project --> Clean --> Select "clean all projects". This should rebuild all projects.
Try cleaning your android project. I get problems with Eclipse sometime, and if I clean the project, it fixes it.
Find the "Problems" view. That will give you more details. Post the description of the problems, we can get more information.
click Window -> Show View -> Problems
Typically, the problem is with a resource you've recently added to your project (drawable, assets, raw, etc.)
Some things to check are:
Invalid XML files
Invalid 9-patch images (outer 1-pixel border must be full black or transparent)
Typically, just start by removing a resource, then cleaning your project (Project > Clean). If the errors go away, that resource is your problem. If not, continue this process until the error DOES go away. Start with the most recent resources you've added, naturally.
i solved error or all project showing errors this way.... close eclipse.
then Right Click on eclipse shortcut-->open file location-->open command widows there and type "eclipse.exe -clean" eclipse the starts..and in my case errors were gone...hope it helps
I'm sorry about this question but I'm very new in mercurial, I have an android project in eclipse already created and working and a web repository at bitbucket.org, I created a repository but I can't share the project into that repository. It must be something fool what I'm doing, but I don't know what is it. Please any help is very welcome
Greetings
You don't give much information on what exactly the problem is. You need to do following steps:
Right click on the project, choose Team > Share Project and then select Mercurial and click Next.
The dialog will offer to create a repository in the project location. Click Finish to do that.
Again right click on the project and choose Team > Commit. Enter a commit message and check that all files you want to include are checked in the list. Click OK.
One more time right click on the project and choose Team > Push.
The the dialog enter the URL of your Bitbucket repository and the login. Click Finish.
Now your code should be in the Bitbucket repository.
To send more changes to Bitbucket, you repeat steps 3, 4 and 5.
If you have a problem, you'll need to exactly explain which step isn't working and what exactly is wrong.