commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Carman <ja...@carmanconsulting.com>
Subject Re: [GIT] Getting started with Git and Eclipse
Date Wed, 07 Jan 2015 17:30:24 GMT
Isn't that a bit of a slippery slope?  Do we want to have a wiki page
for OSX tips and tricks too?  Do we need a separate one for IDEA, or
Netbeans, or VI?  The project is using Git and Maven.  I don't know
that you can get any more common than that in the Java ecosystem these
days.  There are plenty of resources for folks to rely upon.  We don't
need to hold their hands.

On Wed, Jan 7, 2015 at 12:26 PM, sebb <sebbaz@gmail.com> wrote:
> On 7 January 2015 at 17:14, Bernd Eckenfels <ecki@zusammenkunft.net> wrote:
>> Am Wed, 7 Jan 2015 16:42:56 +0000
>> schrieb sebb <sebbaz@gmail.com>:
>>
>>> On 7 January 2015 at 16:06, luc <luc@spaceroots.org> wrote:
>>> > Hi Sebb,
>>> >
>>> > Le 2015-01-07 16:11, sebb a écrit :
>>> >
>>> >> I've just started trying to look at some Math code with Eclipse.
>>> >>
>>> >> However it's not at all obvious how to create the initial project.
>>> >>
>>> >> I'm used to SVN where there is a list of SVN repos, and one can
>>> >> just checkout the required tree.
>>> >>
>>> >> How is one supposed to add the initial project to Eclipse?
>>> >
>>> >
>>> > You are right. It is not obvious.
>>> >
>>> > You should select File -> import... and from the popup wizard find
>>> > the Git-> Projects from Git.
>>>
>>> OK, that works, but there seems to be no way to create the project in
>>> the same workspace as the other Commons components.
>>
>> Actually there are multiple ways. The Eclipse integration of Git
>> somewhat asumes you want to have a shared Git Repo location independent
>> of the workspace. This has the advantage that all workspaces share the
>> same local Git repository. However I prefer the more traditional
>> approach with .git containing the repo.
>>
>> So my prefered way is to use the command line tools to check out a
>> repo. This not only has the advantage that I can use cut+paste of the
>> checkout command, but it also will use the .git location and I can
>> directly create it in the WS directory. After that you "import existing
>> maven project".
>>
>> You can also use the repository view in Eclipse:
>> "Show View -> "Git Repositories". Here you can paste a repository path,
>> it normally asumes a shared repository directory as well, but you
>> change the "directory" setting to the would-be project location in the
>> workspace. (ie. \ws\commons-math instead of USER\git\commons-math).
>> This even allows to import in one step.
>>
>> Having the repo view open is helpful anyway, so this could be the best
>> way (unless you prefer like me the command line for initial checkouts).
>
> Maybe this should be added to the Wiki page that Luc started?
> Or a related page - it may be better to document the initial setup
> steps separately.
>
>> Gruss
>> Bernd
>>
>>> > You can look here:
>>> > <http://www.vogella.com/tutorials/EclipseGit/article.html#clone_respository>.
>>> >
>>> > I'll add it to the wiki.
>>>
>>> Thanks.
>>>
>>> > best regards,
>>> > Luc
>>> >
>>> >
>>> >
>>> >>
>>> >> ---------------------------------------------------------------------
>>> >> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
>>> >> For additional commands, e-mail: dev-help@commons.apache.org
>>> >
>>> >
>>> > ---------------------------------------------------------------------
>>> > To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
>>> > For additional commands, e-mail: dev-help@commons.apache.org
>>> >
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
>>> For additional commands, e-mail: dev-help@commons.apache.org
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
>> For additional commands, e-mail: dev-help@commons.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message