egit

How to keep .git folder out of a Cloned Eclipse Project

风流意气都作罢 提交于 2019-12-10 10:47:14
问题 Issue After importing an Eclipse project from a cloned git repository, I make some changes and commit - and wtf? I get a ".git" folder added to the project, the whole shebang with the heads and refs and worst of all the whole object database gets added to the project, all files/folders having that little question-mark icon signaling that the files have not been added / are not yet tracked by git. This .git folder exists in the actual Working Directory (how does that even make sense?). You can

Merge using EGit results in commit of all changes as done by the merger

笑着哭i 提交于 2019-12-10 10:17:36
问题 I'm using Eclipse with EGit and and my origin/master is on github. On this project are working 3 programmers. When I pull changes to my local git (using EGit) and there are conflicts I solve them, no problem. The thing is that when I commit, it commits a merge that includes all the changed files since my last commit (before pull) and in git I see all these changes by other programmers as if done by me on this last commit of the merge... Why does this happen? What am I doing wrong? Update (14

How to isolate Eclipse workspace from git local repository?

岁酱吖の 提交于 2019-12-10 03:36:20
问题 I installed EGit on Juno and created a Java project in workspace of Eclipse. Then I shared that project to Git. Then when I check the project's properties, I found that the project had been moved from its original workspace into Git local repository. When I make some changes in Eclipse editor, the changes are made on the local repository without commit. How to isolate Eclipse workspace from git local repository? (Well, my Eclipse workspace is ~/Documents/workspace, my git local repository is

Keep getting Invalid author specified. Example: A U Thor <author@example.com>

不问归期 提交于 2019-12-10 02:06:45
问题 Using Eclipse Indigo and egit, everytime I commit a pop up appears and has my name and email in the author and committer boxes. They look fine. however, egit tells me: Invalid author specified. Example: A U Thor <author@example.com> when, I copy and paste A U Thor <author@example.com> into the author box, the message goes away. I can even edit it back to my name and email and it is fine. which makes no sense - what was wrong with it in the first place? Similar problem happens with committer

图解:Eclipse安装git插件EGit方法

十年热恋 提交于 2019-12-09 13:17:58
1.Eclipse 中有 EGit 插件来管理 git 版本库,首先安装 EGit http://eclipse.org/egit/download/ 打开 Eclipse , install new software , 在红框处写入地址,官方地址 http://download.eclipse.org/egit/updates (Recommended) http://download.eclipse.org/releases/indigo 然后等待安装完成。 还有一种方法使用 Eclipse Marketplace ,搜索 git ,就可以看到 EGit 了。 2. 安装完成后,当然要试试可以用吗,要不岂不白装了。 参考网址: http://wiki.eclipse.org/EGit/User_Guide 首先要配置使用版本库的人名字和邮箱,这相当于命令行中的 git config –global user.name “your name” git config –global user.email you@example.com 打开 Preferences > Team > Git > Configuration ,点击 New Entry ,新建一个键值对, user.name 和 user.email 建好后,可以查看到刚刚新建成功后的用户信息。 建立 Home 目录

EGit SSH Exception caught during execution of ls-remote command

一曲冷凌霜 提交于 2019-12-09 10:29:05
问题 I set up a GIT Server in our internal network. I can push to it using git://...../ and with the option --enable=receive-pack on the server. But when I try to push via ssh using EGIT Eclipse plugin(ssh://username@ip_adress:22/project.git) I get the following error: Transport Error Cannot get remote repository refs. Reason: Exception caught during execution of ls-remote command. What might cause this and how do I solve it? 回答1: git:// and ssh:// use different protocols (see EGit User_Guide#Git

Change User location(home variable) in Egit (Eclipse)

冷暖自知 提交于 2019-12-09 09:25:25
问题 I use Eclipse Indigo and Windows 7 and plugin egit/jgit for Eclipse. How to change user location in egit? I should do it, because it contains special characters, which doesn't understand egit. I want "C:\git\home\.gitconfig" instead "C:\Users\Кирилл\.gitconfig". How can I do it? When I press "Open" nothing happens. And in the next Tab "Repository setting" I don't change anything too. 回答1: You need to add an environment variable: This is how i did it on windows 7 Click start button. Right

Is there a way to retrieve eclipse executed git commands?

情到浓时终转凉″ 提交于 2019-12-09 08:53:02
问题 I'm a regular git user, and I'm building some shortcuts in eclipse to activate some EGit functions. I'm a bit wary of what is EGit doing (especially the synchronize workspace operations), and I was wondering if I could make EGit show what git commands it was using. Do you know of an option to make it log to the console, or generally, how to find out which commands got executed? 回答1: EGit does not use the git executables. It reproduces, with the help of JGit, what the executables would do. Git

How can I do the equivalent of git rebase -i HEAD~2 in eGit?

我的梦境 提交于 2019-12-09 08:21:34
问题 I know how to rebase onto a specific branch or tag using eGit in Eclipse, but I haven't found a way to rebase onto a specific sha1 using eGit. I'd like to do this in order to squash commits before pushing to upstream (ie, doing git rebase -i HEAD~n where n is some number of commits ago where I want to rebase). Is this possible with eGit? If not, is there another Eclipse plugin I should be using that would provide this functionality? 回答1: It is currently available in Eclipse Oxygen , it has it

Can't push using EGit and Bitbucket

笑着哭i 提交于 2019-12-09 05:20:28
问题 I've been trying to start a project using EGit with Bitbucket but I can't push the project to the repository in the server. These are the steps I've followed (I'll try to be very specific so other people can use it as a tutorial mode; even though it's not working for me it might work for others): 1) I installed Git on Ubuntu 12.10 using this tutorial 2) Followed this tutorial for GitHub. Start a new C++ project in Eclipse Under Window > Preferences > General > Network Connection > SSH2 > Key