简体   繁体   中英

use Github in Eclipse without using Egit

I have recently started learning GitHub to be more collaborative with my code. I installed Egit on Eclipse and managed to get that working without too many problems but I personally find the interface quite confusing and much prefer the Git Shell or the GitHub application.

My question is how would one use Eclipse and the Git Shell or GitHub application as I can't find much on it.

You can simply used them both, as long as your EGit and your Git shell knows about the same HOME , which isn't always automatic in Windows, since %HOME% isn't defined by default.

That matters because EGit will look for your global Git config in %HOME%\\.gitconfig .

Beside that, any operation you will do in your Git Bash will be reflected in your Egit history.

One way to combine the two is to look for a shell plugin for Eclipse (like for instance Wicked Shell ), if you really don't want to switch applications between Eclipse and an external shell.

But, as janos comments, nothing prevents you to use Git Bash, EGit and GitHub app for the same repo.

In any case, it's good to have EGit, so that he can see the state of the files in Eclipse, without having to switch to Git Bash to check status.
This is how I use it too: do pretty much everything in Git Bash, but profit from seeing status immediately in Eclipse

My solution is to use (shell) instead of any kind of GUI. (shell)而不是任何类型的GUI。

a. It gives you more control over what's going on "under the hood" of Git, and than your life will be much happier.

b. It will make your trouble shooting better

c. even if at the end you will use a gui, it only wraps some shell commands together, so you better understand what the gui is actually doing.

Although Git have some unpleasent growing pains, after first few times the git bash will be super easy and understandable for you.

Some nice tutorials here: http://sixrevisions.com/resources/git-tutorials-beginners/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM