From: "J.V." <jvsrvcs@gmail.com>
To: "git@vger.kernel.org" <git@vger.kernel.org>
Subject: stuck and need unstuck (git checkout)
Date: Mon, 25 Mar 2013 11:57:14 -0600 [thread overview]
Message-ID: <51508FFA.4080404@gmail.com> (raw)
I was on a branch (local tracked with remote), and I wanted to checkout
a remote branch so did:
$git co myRemoteBranch
and got a message that a lot of jar files were being untracked (files
were locked). I had a server running that had some of the jar files
locked, so it could not update and untracked them all.
What I want to do now is:
1. switch branches
2. delete this locally created branch
3. re-check out again so all will be well.
I cannot switch branches because it says my untracked files will be
overwritten. How do I switch branches? I have no commits to make and
simply want to go back. git reset and git stash do not get me there.
thanks
J.V.
next reply other threads:[~2013-03-25 17:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-25 17:57 J.V. [this message]
2013-03-30 20:48 ` stuck and need unstuck (git checkout) Phil Hord
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=51508FFA.4080404@gmail.com \
--to=jvsrvcs@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).