{"thread":{"id":"33280","subject":"stuck and need unstuck (git checkout)","startedAt":"2013-03-25T17:57:14Z","lastAt":"2013-03-30T20:48:50Z","messageCount":2,"participants":["J.V.","Phil Hord"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"212185","messageId":"51508FFA.4080404@gmail.com","threadId":"33280","inReplyTo":null,"subject":"stuck and need unstuck (git checkout)","fromName":"J.V.","fromEmail":"jvsrvcs@gmail.com","sentAt":"2013-03-25T17:57:14Z","receivedAt":"2013-03-25T17:57:14Z","isPatch":false,"sender":{"key":"jvsrvcs@gmail.com","avatar":null},"body":"I was on a branch (local tracked with remote), and I wanted to checkout \na remote branch so did:\n     $git co myRemoteBranch\n\nand got a message that a lot of jar files were being untracked (files \nwere locked).  I had a server running that had some of the jar files \nlocked, so it could not update and untracked them all.\n\nWhat I want to do now is:\n     1. switch branches\n     2. delete this locally created branch\n     3.  re-check out again so all will be well.\n\nI cannot switch branches because it says my untracked files will be \noverwritten.  How do I switch branches? I have no commits to make and \nsimply want to go back.  git reset and git stash do not get me there.\n\nthanks\n\nJ.V.\n"},{"id":"212709","messageId":"CABURp0ra4znHXVmUjMK2kOjPLHe2Dys46HZ=wC=LWri_sFag0Q@mail.gmail.com","threadId":"33280","inReplyTo":"51508FFA.4080404@gmail.com","subject":"Re: stuck and need unstuck (git checkout)","fromName":"Phil Hord","fromEmail":"phil.hord@gmail.com","sentAt":"2013-03-30T20:48:50Z","receivedAt":"2013-03-30T20:48:50Z","isPatch":false,"sender":{"key":"phil.hord@gmail.com","avatar":"https://avatars.githubusercontent.com/u/123908?v=4"},"body":"On Mon, Mar 25, 2013 at 1:57 PM, J.V. <jvsrvcs@gmail.com> wrote:\n> I was on a branch (local tracked with remote), and I wanted to checkout a\n> remote branch so did:\n>     $git co myRemoteBranch\n>\n> and got a message that a lot of jar files were being untracked (files were\n> locked).  I had a server running that had some of the jar files locked, so\n> it could not update and untracked them all.\n>\n> What I want to do now is:\n>     1. switch branches\n>     2. delete this locally created branch\n>     3.  re-check out again so all will be well.\n>\n> I cannot switch branches because it says my untracked files will be\n> overwritten.  How do I switch branches? I have no commits to make and simply\n> want to go back.  git reset and git stash do not get me there.\n\nDoes 'git checkout --force yourLocalBranch' help?\n\nPhil\n"}]}