Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit » Unable to push changes
Unable to push changes [message #694840] Sat, 09 July 2011 20:10 Go to next message
jemmrich  is currently offline jemmrich
Messages: 2
Registered: July 2011
Junior Member
I am stumped on what is happening. When I use gitk to view my remote git repository I see this message:

"Local changes checked in to index but not committed"

The tree looks like this:

|Local changes checked in to index but not committed
|-master testing
|initial commit

I am using "Eclipse EGit" version: 1.0.0.201106090707-r

Here is how I can reproduce the error:

I create a folder on my desktop and:
git init
echo "hi there" > index.php
git add .
git commit -a -m "initial commit"

This repo will be my "remote" repository for testing.


Now in eclipse I clone the repo above
Import the project
make a change in index.php
Team > commit
and then Team > Push to upstream

When I open the repos index.php file, it has not changed. And when I used gitk I can see that it hasnt updated but instead shows the tree information posted above.

Any ideas on what I am doing wrong here?
Re: Unable to push changes [message #694893 is a reply to message #694840] Sun, 10 July 2011 02:01 Go to previous messageGo to next message
Manuel Doninger is currently offline Manuel Doninger
Messages: 119
Registered: October 2010
Senior Member
The first thing is, you should never push to a non-bare Git repository. Either create a bare repository, or go to the remote repository and pull from the dev repository.

Try the following workflow:

Create remote repo: git init --bare

Clone repo, make changes, commit and push.

Clone repo to a second place, and look if the changes are there.
Re: Unable to push changes [message #695373 is a reply to message #694893] Mon, 11 July 2011 11:55 Go to previous message
jemmrich  is currently offline jemmrich
Messages: 2
Registered: July 2011
Junior Member
Thanks Manuel, this worked great Smile


Manuel Doninger wrote on Sun, 10 July 2011 02:01
The first thing is, you should never push to a non-bare Git repository. Either create a bare repository, or go to the remote repository and pull from the dev repository.

Try the following workflow:

Create remote repo: git init --bare

Clone repo, make changes, commit and push.

Clone repo to a second place, and look if the changes are there.

Previous Topic:Performance of label decorations
Next Topic:Nightly update site doesn't work?
Goto Forum:
  


Current Time: Sun Apr 20 04:29:24 EDT 2014

Powered by FUDForum. Page generated in 0.01872 seconds