git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: stuck and need unstuck (git checkout)

From
Phil Hord <phil.hord@gmail.com>
Date
Mar 30, 2013, 20:48 UTC
Message-ID
<CABURp0ra4znHXVmUjMK2kOjPLHe2Dys46HZ=wC=LWri_sFag0Q@mail.gmail.com>
In-Reply-To
<51508FFA.4080404@gmail.com>
On Mon, Mar 25, 2013 at 1:57 PM, J.V. <jvsrvcs@gmail.com> wrote:
Show 16 quoted lines
> 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.
Does 'git checkout --force yourLocalBranch' help?
Phil
Previous: J.V.
Message 2 of 2 in “stuck and need unstuck (git checkout)”
  1. J.V.Mar 25, 2013
  2. Phil HordMar 30, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.