|Confused about Team Share with no former git repo [message #655072]
||Fri, 18 February 2011 04:12
| Kay Huber
Registered: July 2009
I'm experimenting a bit with egit and started trying some stuff according to http://wiki.eclipse.org/EGit/User_Guide (excellent guide!). |
Now I'm a bit puzzeled about the very basic "Create Repository" example (http://wiki.eclipse.org/EGit/User_Guide#Create_Repository)
Creating HelloWorld project: Ok, Team/Share -> Git: so far so good. Since I have no former project shared with git - I'm suggested to "Create a repository" - where the default is my project path + "\.git".
Project: C:\dev\code\workspace_36\git_tests\HelloWorld (that's where it ends up by default)
Git Repo created: C:\dev\code\workspace_36\git_tests\HelloWorld\.git
At first sight, that's still ok. But once I'm adding a second project "HelloWorld2", I can't actually add it to the same repo, instead, I'm creating a second one within HelloWorld2 project. In the end I'll have a local git repo for each project I create.
Is that the intent / best practice?
How would I have to do it, if I want to start creating projects but share them in one local .git repo? Can I still have that repo in the workspace?
That would be something like:
Project A: C:\dev\code\workspace_36\git_tests\gitroot\HelloWorld
Project B: C:\dev\code\workspace_36\git_tests\gitroot\HelloWorld2
Git Repo created: C:\dev\code\workspace_36\git_tests\gitroot\.git
If this is the preferred approach, adding it to the guide would be very helpful!
Thanks for any comments.
Powered by FUDForum
. Page generated in 0.01570 seconds