• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

EGit project creation and remote association

 
Ranch Hand
Posts: 499
Spring AngularJS Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

I am new to EGit and am trying to learn. I have few doubts regarding project creation using egit.

My Repo: E:/parthe/Repo/mytest
My Workspace: E:/parthe/Workspace/mars/mytest

I will try to explain what I did and what I got as clear as possible

Method I:
i) From Git repositories view, I created the above mentioned repo
ii) In the Remotes tag (A repo symbol with name "Remotes" within the created repo), Right click and click on Create Remote..
iii) A new remote dialog appeared, selected configure push and clicked OK
iv) Now configure push dialog appeared, Clicked on change
v) Now select uri dialog appeared, filled in the details and clicked on finish and then clicked on save in configure push dialog
vi) Created a new spring mvc project named Mytest
vii) Right click -> Team-> Share project, configure Git Repository dialog appeared
viii) Selected the test repo created and clicked on Finish
ix) Now the project Mytest is created in repo and it shows "Mytest [test NO-HEAD]"
x) Right click -> Team-> Commit, commited new changes.

Now I should be able to push the project to upstream. Am I right? but when I try to do that (i.e.,)
xi) Right click -> Team, When I check for push to upstream, it is disabled.
xii) So Right click -> Team -> Remote, again configure push to upstream is disabled.

Why this happens? Am I missing something here?

Method II:
i) From Git repositories view, I created the above mentioned repo
ii) In the Remotes tag (A repo symbol with name "Remotes" within the created repo), Right click and click on Paste Repository Path or URI
iii) A new clone git repository dialog appeared, filled in the details and clicked on next, selected the master branch and clicked next and entered the local destination as the above repo and clicked on finish
iv) Cloning from dialog box appeared and once this closes remote is configured.
v) Created a new spring mvc project named Mytest
vi) Right click -> Team-> Share project, configure Git Repository dialog appeared
vii) Selected the mytest repo created and clicked on Finish
viii) Now the project Mytest is created in repo and it shows "Mytest [mytest master]"
ix) Right click -> Team-> Commit, commited new changes.

Now I am able to push my changes to upstream.

So which of these is the correct method and why?

Also in both these methods, I get my workspace folder appended to the project. Why does that happen and what should be done to avoid it. Even if i ignore it and delete it comes back.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic