threads / discuss / 11263

[egit] How-to use egit

Subject: [egit] How-to use egit

## tl;dr

5 messages between Dec 12, 2007 and Dec 14, 2007.

replies: 4people: 3as markdown or json

Wink Saville· Dec 12, 2007, 19:12 UTC · lore
Robin et. al,

I cloned egit from git://repo.or.cz/egit and imported it into my workspace following the instructions in INSTALL I did successfully compile although there were 1115 warnings but no compilation errors.

I then exported to a archive org.spearce.egit.jar and then copied this file to /usr/eclipse/plugin/ I then restarted Eclipse. But I don't see any evidence that I properly installed the plugin. BUT I've never compiled or installed a plugin by hand before so I may have not done this correctly.

Anyway, I need a small nudge on what to do next or maybe redo what I've done correctly. Note, currently my entire workspace is in a git repository and it's config file is:

wink@ic2d1:$ cat .git/config
[core]
        repositoryformatversion = 0
        filemode = true
        bare = false
        logallrefupdates = true
[remote "origin"]
        url = git://192.168.0.8/eclipse-workspace.git
        fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
        remote = origin
        merge = refs/heads/master
[gui]
        geometry = 918x909+633+116 107 218
With the working copy named "workspace".
Cheers,
Wink Saville
Jing Xue· Dec 13, 2007, 02:47 UTC · re: Wink Saville · lore

Re: [egit] How-to use egit

On Wed, Dec 12, 2007 at 11:12:34AM -0800, Wink Saville wrote:
Show 10 quoted lines
> Robin et. al,
>
>
> I cloned egit from git://repo.or.cz/egit and imported it into my workspace
> following the instructions in INSTALL I did successfully compile although
> there were 1115 warnings but no compilation errors.
>
> I then exported to a archive org.spearce.egit.jar and then copied this file
> to /usr/eclipse/plugin/ I then restarted Eclipse. But I don't see any 
> evidence
I have five jars:

/opt/eclipse/plugins$ ll org.spearce* -rw-r----- 1 jingxue jingxue 2.5K 2007-12-01 20:45 org.spearce.egit_0.3.0.200712020145.jar -rw-r----- 1 jingxue jingxue 70K 2007-12-01 20:45 org.spearce.egit.core_0.3.0.200712020145.jar -rw-r----- 1 jingxue jingxue 14K 2007-12-01 20:45 org.spearce.egit.core.test_0.3.0.200712020145.jar -rw-r----- 1 jingxue jingxue 107K 2007-12-01 20:45 org.spearce.egit.ui_0.3.0.200712020145.jar -rw-r----- 1 jingxue jingxue 223K 2007-12-01 20:45 org.spearce.jgit_0.3.0.200712020145.jar

Did you select all the org.spearce projects before exporting?
-- 
Jing Xue
Wink Saville· Dec 13, 2007, 22:35 UTC · re: Jing Xue · lore

Re: [egit] How-to use egit

Jing Xue wrote:
Show 26 quoted lines
> On Wed, Dec 12, 2007 at 11:12:34AM -0800, Wink Saville wrote:
>   
>> Robin et. al,
>>
>>
>> I cloned egit from git://repo.or.cz/egit and imported it into my workspace
>> following the instructions in INSTALL I did successfully compile although
>> there were 1115 warnings but no compilation errors.
>>
>> I then exported to a archive org.spearce.egit.jar and then copied this file
>> to /usr/eclipse/plugin/ I then restarted Eclipse. But I don't see any 
>> evidence
>>     
>
> I have five jars:
>
> /opt/eclipse/plugins$ ll org.spearce*
> -rw-r----- 1 jingxue jingxue 2.5K 2007-12-01 20:45 org.spearce.egit_0.3.0.200712020145.jar
> -rw-r----- 1 jingxue jingxue  70K 2007-12-01 20:45 org.spearce.egit.core_0.3.0.200712020145.jar
> -rw-r----- 1 jingxue jingxue  14K 2007-12-01 20:45 org.spearce.egit.core.test_0.3.0.200712020145.jar
> -rw-r----- 1 jingxue jingxue 107K 2007-12-01 20:45 org.spearce.egit.ui_0.3.0.200712020145.jar
> -rw-r----- 1 jingxue jingxue 223K 2007-12-01 20:45 org.spearce.jgit_0.3.0.200712020145.jar
>
> Did you select all the org.spearce projects before exporting?
>
>   

Yes, I selected them all and a single jar was created which I put in /usr/eclipse/plughins, which apparently was a mistake. I've now unzipped the jar and placed the 5 jars in the plugin directory:

wink@ic2d1:$ pwd /usr/eclipse/plugins wink@ic2d1:$ ls -l *spearce* -rw-r--r-- 1 root root 2506 2007-12-13 13:54 org.spearce.egit_0.3.0.200712121008.jar -rw-r--r-- 1 root root 71396 2007-12-13 13:54 org.spearce.egit.core_0.3.0.200712121008.jar -rw-r--r-- 1 root root 13899 2007-12-13 13:54 org.spearce.egit.core.test_0.3.0.200712121008.jar -rw-r--r-- 1 root root 108661 2007-12-13 13:54 org.spearce.egit.ui_0.3.0.200712121008.jar -rw-r--r-- 1 root root 227877 2007-12-13 13:54 org.spearce.jgit_0.3.0.200712121008.jar

I then started eclipse and now I see: Window/Preferences/Team/Git When I select "Git" in the above, I see "Hi, I'm an empty preference page."

Now what; currently I have my entire workspace in git:

wink@ic2d1:$ ls -al total 36 drwxr-xr-x 9 wink wink 4096 2007-12-12 14:54 . drwxr-xr-x 69 wink wink 4096 2007-12-13 14:22 .. drwxr-xr-x 9 wink wink 4096 2007-12-12 15:09 android drwxr-xr-x 3 wink wink 4096 2007-12-10 21:58 com drwxr-xr-x 8 wink wink 4096 2007-12-13 14:21 .git drwxr-xr-x 3 wink wink 4096 2007-12-12 10:45 .metadata drwxr-xr-x 4 wink wink 4096 2007-12-10 21:58 test0 drwxr-xr-x 2 wink wink 4096 2007-12-10 21:58 test1 drwxr-xr-x 5 wink wink 4096 2007-12-13 14:22 testStdJavaDebug

But how do I tell the plugin where my repo is? I also tried making a git repo in testStdJavaDebug:

wink@ic2d1:$ ls -al total 28 drwxr-xr-x 5 wink wink 4096 2007-12-13 14:22 . drwxr-xr-x 9 wink wink 4096 2007-12-12 14:54 .. drwxr-xr-x 3 wink wink 4096 2007-12-10 22:03 bin -rw-r--r-- 1 wink wink 226 2007-12-10 21:58 .classpath drwxr-xr-x 8 wink wink 4096 2007-12-13 14:22 .git -rw-r--r-- 1 wink wink 375 2007-12-10 21:58 .project drwxr-xr-x 3 wink wink 4096 2007-12-10 21:58 src

But again, I don't see any new menu items that would allow me to look at history or make commits. Is there more I need to to install the plugin, or maybe I just need a little guidance on how to use it.

Thanks,
Wink
Robin Rosenberg· Dec 13, 2007, 23:24 UTC · re: Wink Saville · lore

Re: [egit] How-to use egit

torsdag 13 december 2007 skrev Wink Saville:
> Yes, I selected them all and a single jar was created which

Never seen that behaviour. I'm surprised that would be the default. When I export I get separate jars.

> I then started eclipse and now I see: Window/Preferences/Team/Git
> When I select "Git" in the above, I see "Hi, I'm an empty preference page."
That's all there is for now, but it means the plugin is activated.
> But again, I don't see any new menu items that
> would allow me to look at history or make commits.
> Is there more I need to to install the plugin, or
> maybe I just need a little guidance on how to use it.

We do not actually implement any menus in the menu bar. The only menus are in the context (right click) menu on resources.

Try right-click on a project in the project explorer and the Team menu>Share project.
-- robin
Wink Saville· Dec 14, 2007, 00:11 UTC · re: Robin Rosenberg · lore

Re: [egit] How-to use egit

Robin Rosenberg wrote:
Show 27 quoted lines
> torsdag 13 december 2007 skrev Wink Saville:
>   
>> Yes, I selected them all and a single jar was created which
>>     
> Never seen that behaviour. I'm surprised that would be the default.
> When I export I get separate jars.
>
>   
>> I then started eclipse and now I see: Window/Preferences/Team/Git
>> When I select "Git" in the above, I see "Hi, I'm an empty preference page."
>>     
> That's all there is for now, but it means the plugin is activated.
>
>   
>> But again, I don't see any new menu items that
>> would allow me to look at history or make commits.
>> Is there more I need to to install the plugin, or
>> maybe I just need a little guidance on how to use it.
>>     
>
> We do not actually implement any menus in the menu bar. The only menus
> are in the context (right click) menu on resources.
>
> Try right-click on a project in the project explorer and the Team menu>Share project.
>
> -- robin
>   
Got it:

One thing that would be helpful for me is the relationship between the items in the context menu and the git commands, it isn't obvious to me.

As a for instance, it seems "Update index (Refresh)" is a "git add <file>" but what is "Assume unchanged"?

One other thing is there a "git diff" and or "git diff HEAD"?
Thanks,
Wink

← back to recent threads