Niklas
Niklas

Reputation: 465

Am I using EGit and Eclipse correctly when working with repositories?

I'm trying to set up EGit with Eclipse and I've used neither of them before. I understand the basics around Git and Eclipse is more or less just another IDE. The problem I'm having is setting up a reasonable work environment.

I have file-server at home which I want to use as a Bare repository which I push and pull changes to. To test it out I've done the setup locally.

The thing is that no changes are made to upstream. Would someone like to explain the procedure in doing the push so that I'm not misunderstanding something? Or am I completely wrong on utilizing a bare repository instead of just working non-bare?

Upvotes: 2

Views: 448

Answers (1)

VonC
VonC

Reputation: 1328312

As mentioned in this tutorial, you create your Git repo right where your project is (ie your .classpath and .project files are).

create-repo

Pushing to a bare repo is a good idea (see the links mentioned in "Git - pull & push - production server")

You need though to specify what you want to push:

egit push

Click at least on "Add all branch spec".

Upvotes: 2

Related Questions