* Using git with Eclipse
@ 2007-12-10 22:42 Wink Saville
2007-12-11 2:44 ` Shawn O. Pearce
0 siblings, 1 reply; 8+ messages in thread
From: Wink Saville @ 2007-12-10 22:42 UTC (permalink / raw)
To: git
Hello,
I'm trying to use git on an Eclipse workspace and the .metadata
directory is chock full of files and was wondering what, if anything,
should be ignored. At the moment .history looks like a candidate for
ignoring there are probably others.
Wink Saville
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Using git with Eclipse
2007-12-10 22:42 Using git with Eclipse Wink Saville
@ 2007-12-11 2:44 ` Shawn O. Pearce
2007-12-11 5:55 ` Wink Saville
0 siblings, 1 reply; 8+ messages in thread
From: Shawn O. Pearce @ 2007-12-11 2:44 UTC (permalink / raw)
To: Wink Saville; +Cc: git
Wink Saville <wink@saville.com> wrote:
> I'm trying to use git on an Eclipse workspace and the .metadata
> directory is chock full of files and was wondering what, if anything,
> should be ignored. At the moment .history looks like a candidate for
> ignoring there are probably others.
Ignore all of .metadata; its Eclipse private state that you don't
want to version. I'd add it to .git/info/exclude so its ignored only
in the repository that is using Eclipse, rather than in .gitignore
(which is published).
--
Shawn.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Using git with Eclipse
2007-12-11 2:44 ` Shawn O. Pearce
@ 2007-12-11 5:55 ` Wink Saville
2007-12-11 15:14 ` Jing Xue
2007-12-12 0:29 ` Robin Rosenberg
0 siblings, 2 replies; 8+ messages in thread
From: Wink Saville @ 2007-12-11 5:55 UTC (permalink / raw)
To: Shawn O. Pearce; +Cc: git
Shawn O. Pearce wrote:
> Wink Saville <wink@saville.com> wrote:
>
>> I'm trying to use git on an Eclipse workspace and the .metadata
>> directory is chock full of files and was wondering what, if anything,
>> should be ignored. At the moment .history looks like a candidate for
>> ignoring there are probably others.
>>
>
> Ignore all of .metadata; its Eclipse private state that you don't
> want to version. I'd add it to .git/info/exclude so its ignored only
> in the repository that is using Eclipse, rather than in .gitignore
> (which is published).
>
>
Shawn,
I added .metadata to exclude then used git rm to remove
.metadata from the repository. I then cloned that
repository to see how Eclipse would work. (As part of my
workflow I use git as a backup so I wanted to see what would
happen when I "restored".)
As I'm sure you know with the metadata gone my existing projects
in the Ui were gone and they have to be recreated as well as
some Eclipse and plugin specific configuration.
I understand you and others are working on an Eclipse plugin
for git, will it also ignore . metadata?
Do you need any testing done or is it too early? I'd be glad to
test if you feel its solid enough that I won't lose data or if it
uses a separate different repo then I could use both.
Regards,
Wink Saville
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Using git with Eclipse
2007-12-11 5:55 ` Wink Saville
@ 2007-12-11 15:14 ` Jing Xue
2007-12-12 0:29 ` Robin Rosenberg
1 sibling, 0 replies; 8+ messages in thread
From: Jing Xue @ 2007-12-11 15:14 UTC (permalink / raw)
To: Wink Saville; +Cc: Shawn O. Pearce, git
Quoting Wink Saville <wink@saville.com>:
> Shawn,
> I added .metadata to exclude then used git rm to remove
> .metadata from the repository. I then cloned that
> repository to see how Eclipse would work. (As part of my
> workflow I use git as a backup so I wanted to see what would
> happen when I "restored".)
One way to deal with this might be (after excluding it from the
workspace repository) creating a sub-repository under .metadata, and
use that one for your local backup.
> As I'm sure you know with the metadata gone my existing projects
> in the Ui were gone and they have to be recreated as well as
> some Eclipse and plugin specific configuration.
> I understand you and others are working on an Eclipse plugin
> for git, will it also ignore . metadata?
>
> Do you need any testing done or is it too early? I'd be glad to
> test if you feel its solid enough that I won't lose data or if it
> uses a separate different repo then I could use both.
Egit is an Eclipse plugin, so you can always test it in an isolated
"sandbox" workspace.
Cheers.
--
Jing Xue
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Using git with Eclipse
2007-12-11 5:55 ` Wink Saville
2007-12-11 15:14 ` Jing Xue
@ 2007-12-12 0:29 ` Robin Rosenberg
2007-12-12 6:07 ` Wink Saville
1 sibling, 1 reply; 8+ messages in thread
From: Robin Rosenberg @ 2007-12-12 0:29 UTC (permalink / raw)
To: Wink Saville; +Cc: Shawn O. Pearce, git
tisdag 11 december 2007 skrev Wink Saville:
> Shawn O. Pearce wrote:
> > Wink Saville <wink@saville.com> wrote:
> >
> >> I'm trying to use git on an Eclipse workspace and the .metadata
> >> directory is chock full of files and was wondering what, if anything,
> >> should be ignored. At the moment .history looks like a candidate for
> >> ignoring there are probably others.
> >>
> >
> > Ignore all of .metadata; its Eclipse private state that you don't
> > want to version. I'd add it to .git/info/exclude so its ignored only
> > in the repository that is using Eclipse, rather than in .gitignore
> > (which is published).
> >
> >
> Shawn,
>
> I added .metadata to exclude then used git rm to remove
> .metadata from the repository. I then cloned that
> repository to see how Eclipse would work. (As part of my
> workflow I use git as a backup so I wanted to see what would
> happen when I "restored".)
>
> As I'm sure you know with the metadata gone my existing projects
> in the Ui were gone and they have to be recreated as well as
> some Eclipse and plugin specific configuration.
> I understand you and others are working on an Eclipse plugin
> for git, will it also ignore . metadata?
I don't put my projects into the workspace directory so I don't have
that problem. I think mixing projects and workspaces is a bad idea
(from experience, especially when testing different Eclipse versions
on the same projects.
As for settings you can configure project specific settings,
rather than workspace settings for most interesting settings. You can
also export/import settings. Getting projects into a new workspace
is best done using import. Point import to a directory and it will scan
for all projects and let you import them all in one go.
Egit doesn't ignore .metadata by default, I think. Probably should. For now
you can tell egit to ignore it via the workspace settings, which egit honors.
Eventually it will honor .git/info/exclude etc, but currently it doesn't.
>
> Do you need any testing done or is it too early? I'd be glad to
> test if you feel its solid enough that I won't lose data or if it
> uses a separate different repo then I could use both.
Sure testing is needed. It's solid enough to be usable, but probably not
bug free and isn't feature complete. So if we can root out some bugs and not
just introduce new buggy features that helps. Not that development is very
fast nowadays, but having real users spurs development and hopefully gets
more contributors.
The likelyhood of loosing data is probably very low as few operations are
dangerous. Of course, there is no warranty etc. etc. and we haven't done
very much monkey testing (unless using the plugin on windows counts).
I use egit and git on the same work dir in parallel, sometimes using egit,
sometimes git-gui and sometimes plain git depending on which does the
work better.
-- robin
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Using git with Eclipse
2007-12-12 0:29 ` Robin Rosenberg
@ 2007-12-12 6:07 ` Wink Saville
2007-12-13 21:23 ` Robin Rosenberg
0 siblings, 1 reply; 8+ messages in thread
From: Wink Saville @ 2007-12-12 6:07 UTC (permalink / raw)
To: Robin Rosenberg; +Cc: Shawn O. Pearce, git
Robin Rosenberg wrote:
> tisdag 11 december 2007 skrev Wink Saville:
>
> <snip>
> -- robin
>
I case I'll take the bait and a guinea pig:)
Please send me a link to what you'd like me to test.
Thanks,
Wink
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Using git with Eclipse
2007-12-12 6:07 ` Wink Saville
@ 2007-12-13 21:23 ` Robin Rosenberg
2007-12-13 22:41 ` Wink Saville
0 siblings, 1 reply; 8+ messages in thread
From: Robin Rosenberg @ 2007-12-13 21:23 UTC (permalink / raw)
To: Wink Saville; +Cc: Shawn O. Pearce, git
onsdag 12 december 2007 skrev Wink Saville:
> Robin Rosenberg wrote:
> > tisdag 11 december 2007 skrev Wink Saville:
> >
> > <snip>
> > -- robin
> >
>
> I case I'll take the bait and a guinea pig:)
> Please send me a link to what you'd like me to test.
Great! Please start with http://repo.or.cz/w/egit.git and test the INSTALL
instructions first. We do not provide an updatesite or prebuilt plugins yet.
-- robin
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Using git with Eclipse
2007-12-13 21:23 ` Robin Rosenberg
@ 2007-12-13 22:41 ` Wink Saville
0 siblings, 0 replies; 8+ messages in thread
From: Wink Saville @ 2007-12-13 22:41 UTC (permalink / raw)
To: Robin Rosenberg; +Cc: Shawn O. Pearce, git
Robin Rosenberg wrote:
> onsdag 12 december 2007 skrev Wink Saville:
>
>> Robin Rosenberg wrote:
>>
>>> tisdag 11 december 2007 skrev Wink Saville:
>>>
>>> <snip>
>>> -- robin
>>>
>>>
>> I case I'll take the bait and a guinea pig:)
>> Please send me a link to what you'd like me to test.
>>
>
> Great! Please start with http://repo.or.cz/w/egit.git and test the INSTALL
> instructions first. We do not provide an updatesite or prebuilt plugins yet.
>
> -- robin
>
>
Robin, I'm having a little trouble following the install instructions
due to my inexperience with Eclipse. Anyway see my "[egit] How-to use egit".
I might have it installed correctly now, but not sure how to use,
I just made a reply to Jing with some details.
Cheers,
Wink
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2007-12-13 22:42 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-10 22:42 Using git with Eclipse Wink Saville
2007-12-11 2:44 ` Shawn O. Pearce
2007-12-11 5:55 ` Wink Saville
2007-12-11 15:14 ` Jing Xue
2007-12-12 0:29 ` Robin Rosenberg
2007-12-12 6:07 ` Wink Saville
2007-12-13 21:23 ` Robin Rosenberg
2007-12-13 22:41 ` Wink Saville
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).