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
you probably did git reset --hard origin/your-branch.
git reset --hard origin/your-branch
Try to just git checkout your-branch
git checkout your-branch