egit

How do I create a proper new local and remote branch combination in EGit?

若如初见. 提交于 2019-12-03 02:54:57
I would like to do the following in EGit: $ git checkout -b newbranch $ git push -u origin newbranch This gives me a new local branch, pushes it to the upstream server and creates the right tracking reference . How do I do the same in EGit? VonC For the first operation, you can read the EGit manual " Creating a New Local Branch " Select Team > Switch To... > New Branch For the push, see Vogella's Egit tutorial , but also the " Push ref specification " Note: robinst has opened bug 378960 "Allow to configure upstream in Push Branch wizard" (mentioned in " EGit - set up remote tracking correctly

Gitlab cannot open git-upload-pack error

て烟熏妆下的殇ゞ 提交于 2019-12-03 02:16:07
I have been using Gitlab without problems for a couple of months now. But, since yesterday, I can not "reach" (fetch, push,...) Gitlab from my Eclipse IDE anymore. No matter whether I'm working in my firm (could have been a proxy problem) or at home. I get the following error message : https://gitlab.com/XXX/XXX.git: cannot open git-upload-pack cannot open git-upload-pack Looking at my Eclipse .log , the cause is : Caused by: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure at sun.security.ssl.Alerts.getSSLException(Unknown Source) at sun.security.ssl.Alerts

How to go to previous commits in eclipse and egit

家住魔仙堡 提交于 2019-12-03 01:44:42
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? To check out an old state: Open the History view for the repository (Window > Show view > Other... > Team > History) Select the commit at the time you want Context menu > Checkout When you want to go back, just select the commit where master is (or the branch you were working on before) and select Checkout again. Because there is a branch there, it will automatically

How do I set up Eclipse/EGit with GitHub?

不想你离开。 提交于 2019-12-03 01:28:32
问题 I've never used Git before and would like to learn. I have a private repository with GitHub. I've installed the EGit plugin for Eclipse. I have a workspace where I do my work, generally: ~/Documents/workspace . I am able to add my GitHub repository and download it, but in doing so it creates ~/MyRepository . When I create a project, do I need to point it to ~/MyRepository ? Also, how come when I make an edit and I say push to upstream it says up to date? 回答1: Make sure your refs for pushing

Can EGit (Eclipse git plugin) use an SSH key instead of a username and password?

夙愿已清 提交于 2019-12-03 01:10:47
The git central repository to which I need to commit is configured using SSH keys. My username is jmglov , but when I perform git operations (e.g. git clone ), I use this configuration: : jmglov@kitiara; cat .git/config [remote "origin"] fetch = +refs/heads/*:refs/remotes/origin/* url = git@git.example.com:AwesomeWare When I try to use EGit in Eclipse to push to the origin, I'm prompted for a password for the git user, for which only SSH keypair authentication is enabled. My public key is one of the authorised keys for the git user. Is it possible to configure EGit to use my SSH key instead of

How to import GitHub and Bitbucket repositories into Eclipse Mars?

谁说我不能喝 提交于 2019-12-03 00:50:08
I installed Eclipse Mars enabled the Git perspective and imported a repository. It looks fine, but Eclipse is not behaving normal I can't create new files and search is not finding anything outside the file I'm in. What is the proper way to import repositories/projects from GitHub, Bitbucket and other Git Hosts? First you need to clone the (git) repository in Eclipse. Steps to clone git repo in Eclipse Go to GitHub, or BitBucket, and copy the URL of the repo to clone In Eclipse, Open the perspective Git Use the shortcut icon Clone a Git Repository ... (the icons are shown on the view Git

“cannot pull into a repository with state: merging_resolved”

最后都变了- 提交于 2019-12-03 00:44:35
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 fetch from GeniusWebSocket - origin - everything up to date." "Merge" is greyed in the menu. "Commit" returns "Commit/amend not possible...". "Push to upstream" returns "rejected - non-fast-forward". "Add to index" does nothing. Near the project title, I see [Merged master up-arrow 1 down-arrow 1]. $ git status # On branch master # Your branch and

Multiple Git repositories for each Eclipse project or one Git repository

China☆狼群 提交于 2019-12-03 00:42:20
问题 I am in the process of moving to Git from SVN. In SVN I had multiple eclipse projects in a single SVN repository that is convenient for browsing projects. I was going to move to having one git repository per eclipse project but EGit suggests doing otherwise. The guide for EGit suggests putting multiple projects into a single Git repository. Looking at similar questions such as this suggest one project per repository. Which approach is best practice and what do people implement? 回答1: It

How to push a new project in Github from Eclipse?

不想你离开。 提交于 2019-12-02 20:57:14
I am trying to push my new project in recently created Github repository. But having SSH authentication issue. I don't know the key management, as which key is to used and how. In my github web dashboard I have 2 keys. One with my login account and one with Github for Windows. How can I use the correct key for committing. Because this key is not what mentioned in my Github dashboard. I created new RSA Key in Eclipse. Saved it with Passphrase. And added this key into my Github account. But still it's showing me following key fingure print. Any help? My repos: https://github.com/tahirakram

Strange xml error: Incorrect line ending

佐手、 提交于 2019-12-02 18:46:43
I haven't used Eclipse since 1 week ago. Today I started it and I noticed that it loaded slowly. When it was started it prompted this: http://tinypic.com?ref=2zpk1g2" target="_blank"><img src=" http://i48.tinypic.com/2zpk1g2.png&quot ; border="0" alt="Image and video hosting by TinyPic"></a>"> I thougth that maybe Eclipse has updated something of Android so I updated to the newest ADT. Now I have the same error but I have an extra big error that I don't know if it's because the previous error. I have tried the new feature of look how an xml layer looks in many devices. I have tried with 2