I was doing some work in my repository and noticed a file had local changes. I didn\'t want them anymore so I deleted the file, thinking I can just checkout a fresh copy. I
Since "detached head state" has you on a temp branch, just use git checkout - which puts you on the last branch you were on.
git checkout -