git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git checkout problem
@ 2013-02-23  0:30 J.V.
  2013-02-23  8:19 ` Andreas Schwab
  0 siblings, 1 reply; 2+ messages in thread
From: J.V. @ 2013-02-23  0:30 UTC (permalink / raw)
  To: git@vger.kernel.org

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?

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: git checkout problem
  2013-02-23  0:30 git checkout problem J.V.
@ 2013-02-23  8:19 ` Andreas Schwab
  0 siblings, 0 replies; 2+ messages in thread
From: Andreas Schwab @ 2013-02-23  8:19 UTC (permalink / raw)
  To: J.V.; +Cc: git@vger.kernel.org

"J.V." <jvsrvcs@gmail.com> writes:

> 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."

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-02-23  8:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-23  0:30 git checkout problem J.V.
2013-02-23  8:19 ` Andreas Schwab

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).