egit

EGit - set up remote tracking correctly when creating a branch

狂风中的少年 提交于 2019-12-21 19:56:24
问题 When I create a new branch from a remote branch using EGit I get the wrong remote tracking set up: I create the local branch feature1 from the remote branch refs/heads/master and immediately push to upstream. The followign remote tracking gets configured in my .git/config file: [branch "feature1"] remote = origin merge = refs/heads/master So, pull and push in that branch will pull and pull from/to the remote master branch. I would expect the following tracking configuration instead: [branch

Eclipse + Maven + Git + Multi-Module projects = Unhappiness

北城余情 提交于 2019-12-21 07:28:23
问题 We've got a multi-module project using Eclipse and Maven. The only way I could get it to work in the past was to use a flat layout for the projects, where the parent module was a peer to the other modules. This worked fine with m2eclipse and Subversion. Now we'd like to move to Git and GitHub. I'd like to expose the entire project, along with all the modules, as a single project on GitHub. The problem is that EGit, the Eclipse/Git plugin, wants to manage projects one at a time, not groups of

Remove ORIG_HEAD and FETCH_HEAD from history view in Eclipse

倖福魔咒の 提交于 2019-12-21 05:25:09
问题 I recently started using Eclipse Kepler with EGit plugin and these branches are not what I am used to. Is there a way to permanently stop these branches from being created? I tried removing them manually, but it does not work and I don't want to have them the next time I do fetch or rebase. 回答1: As I understand from the comments on your question, you only want these refs not to be shown in History view. You may try to uncheck Additional Refs from Preferences > Team > Git > History . This

EGIT branches local vs Remote tracking

心不动则不痛 提交于 2019-12-21 05:18:14
问题 I am new to GIT. I use EGIT with eclipse. I have a question about branches where I see two sections "Local" and "Remote Tracking". If I have to work on one of the branches, I think there are two ways I can accomplish it. a) Check out origin/featureBranch under remote tracking and work on it. b) Right click under local and create a local branch and point to ref/remote/featureBranch and start working on it? Are there any difference between these two approaches? which one is preferred? 回答1: b)

Compatibility of EGit - or are there alternatives?

和自甴很熟 提交于 2019-12-21 04:19:12
问题 I'm developing with Eclipse and managing my repositories with git and gitorious. Until now, I used git on the command line. I've looked around for a way to integrate git into Eclipse and found EGit. This has also been asked on SO two years ago. But as EGit uses JGit, a git clone written in Java, I'm concerned about its compatibility with the original git. I know that EGit is missing some (maybe a lot) of git's advanced features, so I would use EGit for daily basic uses like commits, checkouts

funny refname error when creating a new remote branch

假如想象 提交于 2019-12-21 03:54:27
问题 So I've gotten a project up on github and everything is dandy. Now I want to create a new branch. Here's what I've done: created a new local branch pushed the new branch to github Here's the problem: During the push to my remote, I get this error: Repository ssh://git@github.com/<username>/ProjectColossus.git funny refname error: refusing to create funny ref 'workingBranch' remotely My remote repo is called origin, so I've tried using that refname as suggested in another answer here on

EGit push operation giving error: “Error occurred during unpacking the remote end”

痴心易碎 提交于 2019-12-20 14:14:15
问题 Error occurred during unpacking the remote end Steps, which I followed: On system A (remote): Installed EGit Create a project Share that project Create repository Add and commit that project to repository (share the repository folder) On system B (local): Install EGit Import project (by cloning remote repository) select clone (not add) give the path of remote repository like 192.168.10.28\Git\repo check the branch give destination path(local) follow simple steps and import the project Modify

Eclipse and EGit: How to easily review changes to ALL modified files before committing to *local* repository

我的梦境 提交于 2019-12-20 08:59:19
问题 I'm using Eclipse Indigo SR2 with the (built-in) EGit plugin v.1.3.0.201202151440-r and haven't been able to find any way to easily review all my changes before making a commit. I used Eclipse with SVN for years, and this was always very easy to do. I would typically right-click on my project, select Team->Synchronize , double-click on the first changed file (in the Team Sync perspective), then hit Ctrl - . repeatedly to review all changes in one file, and then proceed to the next file, as I

git stash and git pull

荒凉一梦 提交于 2019-12-20 07:58:52
问题 I am new to Git and I am using EGit eclipse plugin to commit. I modified few files and I stashed the changes, then I did git pull in command line which pulled up all the latest commits. Then I did Apply stashed changes from EGit. Now it applied my changes and the changes which pulled from last commit of stashed files went out. I am not sure why it didn't ask me about merge conflicts and overwrote my changes and lost previous commits changes. How to get those changes? 回答1: When you have

Eclipse Juno/MyLyn does not show change sets in synchronization view

余生颓废 提交于 2019-12-20 04:58:14
问题 I'm new to MyLyn and I really want to use the change sets automatic management function. So what I did is I shared a project via git, then create a new task, activate it, made some changes, open synchronize view and synchronize. Now I should be able to see my change sets, right? But the dropdown button that suppose allow me to choose the Change Sets mode only shows "All Model", "Workspace", "Java Workspace", "Git commits". There is no "Change Sets" option. BTW, I did toggle Change Sets in