spacitron
spacitron

Reputation: 2183

Egit: unable to çheckout new branch

I'm trying to checkout a new branch in Eclipse using Egit but I keep getting the same message:

enter image description here

I tried dealing with this in any way possible. Selecting "Commit"or "Stash" only tells me that there are no changes to be stored. Selecting "Reset" only makes the error reappear after a few seconds. Other than this I pulled, cleaned and re-cloned the project a few times. I also created the following .gitignore file:

*target*
*.jar
*.war
*.ear
*.class

# eclipse specific git ignore
*.pydevproject
.project
.metadata
bin/**
tmp/**
tmp/**/*
*.tmp
*.bak
*.swp
*~.nib
local.properties
.classpath
.settings/
.loadpath

# External tool builders
.externalToolBuilders/

# Locally stored "Eclipse launch configurations"
*.launch

Still no luck. I really don't know where the problem is.

Upvotes: 1

Views: 62

Answers (1)

VonC
VonC

Reputation: 1323203

Make sure bin isn't already versioned:

git rm --cached -r bin

Add bin to the .gitignore

bin/

(no need for /**)

And finally, try again to checkout the other branch.

Upvotes: 1

Related Questions