I'm not sure what has happened, but this command used to work up to now. I have a branch named refactorizacion
checked out. If I run the command git fetch
, it seems to work fine (no error is shown), but if I run git fetch origin refactorizacion:refactorizacion
, it gives me the following error:
fatal: Refusing to fetch into current branch refs/heads/refactorizacion of non-bare repository
Unexpected end of command stream
This is also causing the Team > Synchronize Workspace
command of egit
in eclipse to show an error:
Fetch operation failed
Synchronization will be continued based on data that are currently in repository.
You can disable fetching changes before synchronization in preferences: Team > Git > Always launch fetch before synchronization