You can clone your local repositor somewhere without any authentication, just find out what is your path of the repo.
git clone --no-hardlinks <repo path>
git clone --no-hardlinks <repo path>
git rev-list -n 1 HEAD -- <file_path>
If you want to restore it you can use this simple command and in a few seconds your file/directory will be backgit checkout $(git rev-list -n 1 HEAD -- "$file")^ -- "$file"