Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsUnable to push changes
https://www.eclipse.org/forums/index.php/mv/msg/219491/694840/#msg_694840
"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?]]>jemmrich 2011-07-10T00:10:38-00:00Re: Unable to push changes
https://www.eclipse.org/forums/index.php/mv/msg/219491/694893/#msg_694893
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.]]>Manuel Doninger2011-07-10T06:01:24-00:00Re: Unable to push changes
https://www.eclipse.org/forums/index.php/mv/msg/219491/695373/#msg_695373
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.