egit

eclipse的git插件获取git.oschina

蹲街弑〆低调 提交于 2019-11-30 23:22:03
1,配置egit 1,安装egit插件 help----->Marketplace------>输入egit ----->点击install 2,复制oschina上的地址 3,eclipse中操作项目 2,向git.oschina上传项目 点击完成即可 3,从git.oschina导入项目 右键----->Team----->git 来源: oschina 链接: https://my.oschina.net/u/861562/blog/151975

Abort conflicting merge in egit

删除回忆录丶 提交于 2019-11-30 18:07:30
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. Check the section " Aborting a merge ": If a merge resulted in conflicts you can abort the merge with a hard reset to the current branch. This can be done in state "Conflicts" and in state "Merged", i.e. before and after you have resolved the conflicts. The hard reset can be done from the team menu, the Git Repositories View or the History View. See Revert

EGit Local vs. Remote repositories

独自空忆成欢 提交于 2019-11-30 16:02:00
I'm new to git and am wrapping my head around how I'm supposed to be using git and egit. From the egit tutorial, I have setup a respository on GitHub, pushed my Eclipse projects to the remote GitHub repository from my local workspace, I can push changes to GitHub, switch branches, see the updates on GitHub, etc. This all makes sense. Looking at the Git Repository explorer, I have a listing of "Local" branches and have no "Remote Tracking" branches and I have no "Remotes" listed. When I create a branch from a local branch, the egit dialog indicates "You are creating a branch based on a local

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

痴心易碎 提交于 2019-11-30 11:58:39
问题 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 have configured RSA key based SSH authentication). But when I try to push from EGit (via SSH pointed to GitHub), I get a prompt to enter my pass phrase. But when I enter the correct pass phrase, it prompts again for the same (note: username appears

“git pull --rebase” in Eclipse

馋奶兔 提交于 2019-11-30 11:37:42
Our version control manager recommends us to use git pull --rebase to pull new changes from upstream branch. I want to use EGit (Eclipse plugin for git) to execute that. How can I do this? Use git config branch.*branch-name*.rebase true And pull will automatically rebase. You can set it up to configure new branches automatically. git config branch.autosetuprebase always You can also change the rebase configuration of a branch from within Eclipse: Open the Git Repositories view and navigate to the local branch Open the context menu and select Configure Branch... In the resulting dialog, select

EGit: cannot push, cannot pull

亡梦爱人 提交于 2019-11-30 06:48:11
问题 I'am using EGit and I commited a change to my local git repository. I'd like to push this change to a remote. When doing that, a dialog screen pops up which shows "rejected-master-master-non-fast-forward". The answer of this linked question states that I have to pull first. When doing the pull, an EGit exception is thrown: org.eclipse.jgit.api.errors.TransportException: Nothing to fetch. at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:139) at org.eclipse.jgit.api.PullCommand.call

Egit adding Eclipse project folder to git repository

牧云@^-^@ 提交于 2019-11-30 05:10:50
I've created a new empty git repository on BitBucket and now I want to link it to Eclipse. I added the repo to the "Git Repositories" view and created a new project with the same name. I select "Team -> Share Project" then commit and push upstream. Now my repository has folder structure /my-long-project-name/My Long Project Name/ Is there any way to make the project folder the root of the git repository? From the EGit Eclipse Wiki page : It is probably not a good idea to make a project the root folder of your Repository The reason is that you will never be able to add another project to this

How do I push to Git Repo given the following error: An internal Exception occurred during push: ssh://git@github.com/xxx/xxx.git: session is down

强颜欢笑 提交于 2019-11-30 04:56:22
I recently set up a github account to store the source code of a project I have been working on. I am using egit eclipse plugin to push changes to github . I successfully pushed the initial code and 2 subsequent changes. However when I attempted to push the third change I was not able. The following excepiton appears in the eclipse error log. If someone could tell me the cause of this error, or tell me how I can go about debugging the problem it would be a great help. org.eclipse.jgit.api.errors.JGitInternalException: Exception caught during execution of push command at org.eclipse.jgit.api

Eclipse Git plugin - remove file from repo without deleting local

戏子无情 提交于 2019-11-30 03:23:21
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) I have found the answer. Team->Untrack is indeed the equivalent of "rm --cached". However there is a known bug which produces weird behaviour when you untrack and then try to commit. https://bugs.eclipse.org/bugs/show_bug.cgi?id=363405 Team -> Advanced -> Untrack did the job ( git rm --cached ) for me. I had the same problem, after not initially including directories and files

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

白昼怎懂夜的黑 提交于 2019-11-30 01:41:59
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 have configured RSA key based SSH authentication). But when I try to push from EGit (via SSH pointed to GitHub), I get a prompt to enter my pass phrase. But when I enter the correct pass phrase, it prompts again for the same (note: username appears as git because that's the default when using GitHub. I guess that wouldn't be a issue). Under Eclipse