Questions tagged [egit]

For questions about the EGit Eclipse plugin for the Git version control system.

EGit is an plugin for the version control system built on top of , the Java implementation of Git.

enter image description here

1440 questions
27
votes
3 answers

How to delete commits with egit?

I just made some bad commits with egit that I would like to delete. How do I delete commits from egit? Thanks! EDIT: I tried a hard reset a few times but it didn't do anything. EDIT 2: Hard reset does rollback changes indeed, but I want them to…
jobukkit
  • 2,490
  • 8
  • 26
  • 41
27
votes
1 answer

Eclipse with EGit, git-blame info is hard to see

using Eclipse Indigo Service Release 2, with EGit plugin and JDK 1.7. I've seen that it should support blame annotations, but I can't get it to show like I see here on Eclipse Wiki. Here's how it looks for me, you can't see the pointer but I'm…
localhost
  • 1,253
  • 4
  • 18
  • 29
26
votes
2 answers

Why is not recommended to have an Eclipse project folder as a Git repository?

When sharing a project as git and trying to make the Eclipse project folder as the git repository, Eclipse says that it is not recommended to do so and that it should be outside the Eclipse workspace. Why is that?
David Hofmann
  • 5,683
  • 12
  • 50
  • 78
24
votes
3 answers

GitHub pull request from private to public repo possible?

I forked a public repo and made the new repo private. I added a new remote branch on my private repo with some fixes committed. Now, I want to create a pull request from the branch in my private repo towards the public repo I forked from. I select…
Sebi
  • 8,323
  • 6
  • 48
  • 76
24
votes
3 answers

How do I create a remote git repository in EGit and link it to an existing Eclipse project?

I am using Eclipse Helios and EGit. I am new to Git. I have an existing Eclipse project for an Android app I would like to place in Git. Can someone please share some instructions on how to setup a Git repo on a shared folder, and place the…
Dan Largo
  • 1,075
  • 3
  • 11
  • 25
24
votes
2 answers

Git commit not possible. There are no staged files

I am using EGits with Eclipse and running into some issues. I have one change from head; I have made one new class. When I right click on this class and click "push", the following dialog shows and I cannot get past it : Anyway, I need to push…
Simon Kiely
  • 5,880
  • 28
  • 94
  • 180
24
votes
4 answers

Is it possible to slim a .git repository without rewriting history?

We have a number of git repositories which have grown to an unmanageable size due to the historical inclusion of binary test files and java .jar files. We are just about to go through the exercise of git filter-branching these repositories,…
Mark Booth
  • 7,605
  • 2
  • 68
  • 92
23
votes
3 answers

EGit - SSH Fails at Passphrase (when connecting to GitHub)

I am using Eclipse Indigo RC4 with EGit (bundled). I have a project which I have committed to my local repository, and now I want to push from that to a remote repository I have in GitHub. Pushing / Pulling from the command line tools works fine (I…
Yohan Liyanage
  • 6,840
  • 3
  • 46
  • 63
23
votes
2 answers

git gc / git gui: Unlink of file failed

Running version 1.9.4.msysgit.0 of git, I'm getting the mentioned error(s) almost every time I run git gc on the command-line or via git gui when it prompts me to "compress loose objects": Counting objects: 1110956, done. Delta compression using up…
zb226
  • 9,586
  • 6
  • 49
  • 79
23
votes
3 answers

Disabling EGit in Eclipse-CDT Juno

This thread: How to disable EGit temporarily? discusses how to disable EGit in Eclipse, but when I go to "Startup and Shutdown", there is no option to disable EGit. How can I control what plug-ins are loaded in Eclipse-CDT?
Josh
  • 11,979
  • 17
  • 60
  • 96
22
votes
4 answers

How to download/clone a new branch from my server git repository into an already created local git repository in my PC with Eclipse EGit

This is driving me crazy. I created a git repository in a Linux server hosted by my hosting company. I cloned it to a local copy using Eclipse EGit. I then created a branch in the original git repository in the server. How do I copy the branch to my…
jdias
  • 5,572
  • 4
  • 22
  • 25
22
votes
1 answer

How to go to previous commits in eclipse and egit

I have a git android project managed in eclipse and some times i want to temporarily roll back my android project to a specific time and then build it and do stuff and then restore to the latest version. How is this possible?
Mehdi Fanai
  • 4,021
  • 13
  • 50
  • 75
21
votes
13 answers

"Invalid project description", importing from GIT repo problem

After copying my GIT repo from a PC computer onto my MAC, i can't seem to import it to an eclipse. Import happens via eGit plugin directly from existing local git repository. Same exact import works perfectly fine on existing Windows…
James Raitsev
  • 92,517
  • 154
  • 335
  • 470
21
votes
5 answers

Push eclipse project to GitHub with EGit

I am successfully pushing my project to GitHub using EGit. My repository is called HelloWorld. My project in eclipse is also called HelloWorld. My problem is when i push the project it is upload the project under the folder HelloWorld. So the result…
salvador
  • 1,079
  • 3
  • 14
  • 28
21
votes
1 answer

What is the meaning of pull strategy when creating a branch with egit?

In EGit when I got to Team > Switch to > New branch I end up with the dialog box below. What is the meaning of the various pull strategies listed on this dialog box?
ams
  • 60,316
  • 68
  • 200
  • 288