Skip to contentSkip to conversation

git checkout problem

DISCUSSION J.V. 2 participants 2 messages Jun 15, 2016

lore
Share & tools
lore

J.V.

author
#0 lore raw

I was on my master branch, I checked out a branch (origin/somebranch), did nothing, made no updates but did a few git pulls over about a week; made a small change to one file & comitted & pushed.

Now am trying to go back to my master branch and get:

error: The following untracked working tree files would be overwritten by checkout:
lib/derbyclient.jar
Please move or remove them before you can switch branches.
Aborting

I did not put that file there, how do I get back to my master branch? I do not want to muck up the branch that I am now one. Obviously someone put derbyclient.jar there, not sure, but it is supposed to be there so do not want to remove.

any ideas?

#1 lore raw
Quoted 7 lines · J.V.

Now am trying to go back to my master branch and get:

error: The following untracked working tree files would be overwritten by checkout:
lib/derbyclient.jar
Please move or remove them before you can switch branches. Aborting

When in doubt, try running "git status". What does it say?

Andreas.

Signature · 3 lines
Andreas Schwab, [email protected]
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."