Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » Doubt about git repositories inside Eclipse project folders
Doubt about git repositories inside Eclipse project folders [message #1394279] Sat, 05 July 2014 03:08 Go to next message
Marcos Antonio is currently offline Marcos AntonioFriend
Messages: 18
Registered: July 2009
Junior Member
Besides not being able to add another project to the same git repository, is there any other reason to not create a git repository (.git directory) inside an Eclipse Project folder? Currently my project directory structures look like this (with a .git repository inside it):

MyProject
  .git
  bin
  src
  .classpath
  .project
  .gitignore

Should I place the git repository outside the project folder?

Thank you.

Marcos

[Updated on: Sat, 05 July 2014 12:30]

Report message to a moderator

Re: Doubt about git repositories inside Eclipse project folders [message #1395246 is a reply to message #1394279] Sun, 06 July 2014 16:30 Go to previous messageGo to next message
Robin Rosenberg is currently offline Robin RosenbergFriend
Messages: 332
Registered: July 2009
Senior Member
Marcos Mising name skrev 2014-07-05 05.08:
> Besides not being able to add another project to the git repository, is there any other reason to not create a git repository (.git directory) inside an Eclipse Project

I think that covers it.
> folder? Currently my project directory structures look like this (with a .git repository inside it):
>
> MyProject
> .git
> bin
> src
> .classpath
> .project
> .gitignore
>
> Should I place the git repository outside the project folder?

Yes.

> Thank you.
>
> Marcos
Re: Doubt about git repositories inside Eclipse project folders [message #1395262 is a reply to message #1395246] Sun, 06 July 2014 17:08 Go to previous messageGo to next message
Marcos Antonio is currently offline Marcos AntonioFriend
Messages: 18
Registered: July 2009
Junior Member
Robin Rosenberg wrote on Sun, 06 July 2014 16:30
Marcos Mising name > Should I place the git repository outside the project folder?

Yes.


Why? What's the advantage of that?

Others say I don't have any reason to do so:

http://stackoverflow.com/questions/24587391/about-git-repositories-inside-eclipse-project-folders
Re: Doubt about git repositories inside Eclipse project folders [message #1396029 is a reply to message #1395262] Mon, 07 July 2014 19:37 Go to previous messageGo to next message
Robin Rosenberg is currently offline Robin RosenbergFriend
Messages: 332
Registered: July 2009
Senior Member
Marcos Antonio skrev 2014-07-06 19.08:
> Robin Rosenberg wrote on Sun, 06 July 2014 16:30
>> Marcos Mising name > Should I place the git repository outside the project folder?
>>
>> Yes.
>
>
> Why? What's the advantage of that?

You already listed one, that's enough. One-project repos are rare so it's better
to stick to something familiar.

-- robim

> Others say I don't have any reason to do so:
>
> http://stackoverflow.com/questions/24587391/about-git-repositories-inside-eclipse-project-folders
>
Re: Doubt about git repositories inside Eclipse project folders [message #1397512 is a reply to message #1396029] Wed, 09 July 2014 20:57 Go to previous messageGo to next message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1268
Registered: July 2009
Senior Member
also see my comments in https://www.eclipse.org/forums/index.php/t/782045/
Re: Doubt about git repositories inside Eclipse project folders [message #1397717 is a reply to message #1397512] Thu, 10 July 2014 04:20 Go to previous message
Marcos Antonio is currently offline Marcos AntonioFriend
Messages: 18
Registered: July 2009
Junior Member
Matthias Sohn wrote on Wed, 09 July 2014 20:57
also see my comments in https://www.eclipse.org/forums/index.php/t/782045/


My git repository is inside my project folder, but my project folder is not inside the Eclipse workspace. So no problem to me. Also, I will never have the need to add another project to this particular repository.

Marcos
Previous Topic:Pack file handle remains open after using a shared repository
Next Topic:Team -> Import Project Set fails with "Invalid project description..."
Goto Forum:
  


Current Time: Tue Apr 16 18:48:57 GMT 2024

Powered by FUDForum. Page generated in 1.86776 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top