How do I check out a previous version of a directory under a new name?
(I have and always had a directory
You could do very simple:
git co -b new-branch-name # create and go to new branch, just to be sure git slg # get the commit hash you need for next step git co [commit-hash] # now you get the old folder by the state you need it
then copy the directory you need to your desktop. ( You are now in HEAD detached)
git co new-branch-name # cause you are in detached head go back to new-branch
On desktop rename the directory to
foo_old and copy paste it to where you need it in project.