On 2016-10-25, at 2:11 PM, David Karr <[email protected]> wrote:
> When I first cloned a remote repo, it had several subdirectories, and I had > Eclipse create projects automatically. > > Since that time, all but one of those subdirectories have been removed from > master. > > I want to just reset my local repo to match the remote, but try as I might, > it just is not removing those leftover peer subdirectories (and contents) > that are now removed from master on the remote. > > I've tried "git pull", "git pull -f", and "git reset --hard" both from the > command line and from Eclipse. The phantom directories are not removed. > > I know I could just nuke my local repo and reclone from the remote repo, but > I do have some stashes that I'd like to preserve for now. > > What else do I have to do to clean up these phantoms? You might try the following: 1. Delete local copies of all files that git is paying attention to. Leave the .git folder and all the git objects (this is where the stashes are kept). 2. Check out a fresh copy of the branch you want to work with. If I understand the situation correctly, that should make your workspace match what you want. > > -- > You received this message because you are subscribed to the Google Groups > "Git for human beings" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. --- Entertaining minecraft videos http://YouTube.com/keybounce -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
