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
20
votes
1 answer

Abort conflicting merge in egit

I recently did a misclick in the repositories view and merged two commits that can't (and shouldn't) be merged. The result was a merge conflict. Native git has git merge --abort for such cases. However, i cant find such an option in egit.
functionpointer
  • 1,411
  • 1
  • 13
  • 18
19
votes
2 answers

Git: "Error: refusing to create funny ref 'HEAD' remotely" for initial push

I am attempting an initial push of my Git repository from Egit (Eclipse Git) to GitHub. Unfortunately I am getting the following error: error: refusing to create funny ref 'HEAD' remotely I set both the source and destination ref to 'HEAD' What…
Casebash
  • 114,675
  • 90
  • 247
  • 350
19
votes
5 answers

Can't install Maven SCM Handler for EGit for Juno

I've updated my eclipse indigo to juno via the Help->Check for updates menu. I noticed I had updates for egit (2.x) and jgit (2.x) which clashed with my current installations (1.3.x) and so I removed all my egit plugins (eigt,jgit,egit-mylyn and…
Ittai
  • 5,625
  • 14
  • 60
  • 97
19
votes
2 answers

When pushing to remote Git repo using EGit in Eclipse, what should I choose?

What is the HEAD master [branch] ? What should I choose for the "Source ref" and "Destination ref", respectively?
qazwsx
  • 25,536
  • 30
  • 72
  • 106
18
votes
5 answers

Eclipse Git plugin - remove file from repo without deleting local

Using the Egit plugin, is it possible to permanently remove a file from source control without deleting the local copy? I.e., is there a GUI action equivalent to running "git rm --cached"? (Edited to simplify question)
naomi
  • 1,934
  • 1
  • 14
  • 29
18
votes
1 answer

How can I delete a remote tag in eGit?

I can remove a local tag very easy in the Git Repositories View of eclipse. But if that tag was a remote tag (originally) and I make a push - nothing happens. On the next pull that tag will reappear again. Neither Remote -> Push tags nor Remote ->…
Tobias Liefke
  • 8,637
  • 2
  • 41
  • 58
18
votes
4 answers

EGIT saying Read timed out after 30,000 ms

Im trying to clone a remote repo over http in my local dest. im using egit on eclipse luna. but im always getting error read timed out after 30,000ms. i know http is correct protocol for it, my username passsword is correct but still this problem…
adityag
  • 603
  • 3
  • 8
  • 24
18
votes
3 answers

Show annotations not working

I use Eclipse with egit plugin. When I click Team -> Show Annotations, it shows up nothing. But I could view annotations by going to the history and then right clicking on the desired change set. Shouldn't the first way show annotations from the…
Vignesh
  • 343
  • 2
  • 5
  • 13
18
votes
3 answers

"cannot pull into a repository with state: merging_resolved"

After some pulling, merging and conflict resolving, my GIT is stuck. This is what I tried to do (with EGit) on the main project: "Pull" returns "cannot pull into a repository with state: merging_resolved" "Fetch from upstream" returns "No ref to…
Erel Segal-Halevi
  • 33,955
  • 36
  • 114
  • 183
18
votes
4 answers

Eclipse + Git - How to get toolbar?

I've got Eclipse 3.7.2 installed and working fine. I installed the git plugins (see below). Right clicking my active project and clicking on "Team" gives me the options to pull/push/commit and more. I have set my git executeable to msysgit (C…
user1438003
  • 6,603
  • 8
  • 30
  • 36
17
votes
1 answer

Eclipse error when installing Egit

I am having some trouble trying to install the egit plugin. (installation instructions here) When I try to install it I get this error: Cannot complete the install because one or more required items could not be found. Software being installed:…
nunos
  • 20,479
  • 50
  • 119
  • 154
17
votes
2 answers

Egit hooks do not get triggered

I have a git repo with a pre-commit hook that intentionally fails 100% of the time. cat .git/hooks/pre-commit > exit 1 If I try to commit through the command line, it fails as expected. However, if I commit from egit, the hook is ignored and the…
Ken Hirakawa
  • 7,831
  • 10
  • 38
  • 49
17
votes
4 answers

Cannot import local git into Eclipse to create a new project (throws error "Connecting Git team provider failed")

I created a git repository on my local computer: git init git add TestGit.java git commit -m "Start" I then went into Eclipse and chose to import and create a new project from that Git repo. During the Wizard steps, it recognized the .git directory…
Don Rhummy
  • 24,730
  • 42
  • 175
  • 330
17
votes
2 answers

Eclipse EGit Command Line

I recently installed Git for Eclipse (EGit) and I have used some basic functions by right-click -> Team -> Add/Commit/Remove/Exclude/etc. However, I would like to use some of the more complicated features of git, and command-line syntaxes. Is there…
user2097804
  • 1,122
  • 4
  • 13
  • 22
17
votes
1 answer

Partial git commit from eclipse (egit)

Say I have a file with 2 changes. How do I use egit to commit only one of them? The command line version can be found in this question.
Malt
  • 28,965
  • 9
  • 65
  • 105