threads / discuss / 32983

git checkout problem

Subject: git checkout problem

## tl;dr

2 messages between Feb 23, 2013 and Feb 23, 2013.

replies: 1people: 2as markdown or json

J.V.· Feb 23, 2013, 00:30 UTC · lore

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?
Andreas Schwab· Feb 23, 2013, 08:19 UTC · re: J.V. · lore

Re: git checkout problem

"J.V." <jvsrvcs@gmail.com> writes:
Show 7 quoted lines
> 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.
-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

← back to recent threads