我可以在我的 Mac 上恢复已删除的未跟踪文件吗? [关闭]

问题描述 投票:0回答:0

我错误地删除了根目录下运行

abk@ABK-MacBook-Pro ~ % git clean -d -x -f
命令的所有文件。我所有的文档和文件都被删除了。我可以恢复它们吗?

git clean -d -x -f
Removing .CFUserTextEncoding
Removing .DS_Store
Removing .IdentityService/
Removing .android/
Removing .anydesk/
Removing .bash_history
Removing .bashrc
Removing .config/
Removing .cups/
Removing .dotnet/
Removing .fig.dotfiles.bak/
Removing .fig/
Removing .gitconfig
.......
.......
Removing Library/Application Support/Microsoft Visual Studio
Removing Library/Application Support/iCloud
Removing Library/Application Support/com.apple.avfoundation
Removing Library/Application Support/CallHistoryDB
Removing Library/Application Support/UnityHub
Removing Library/Application Support/com.apple.RemoteManagementAgent
Removing Library/Application Support/Dock
Removing Library/Application Support/com.apple.ProtectedCloudStorage
Removing Library/Application Support/Caches
warning: failed to remove Library/Autosave Information: Permission denied
^C

它已经删除了所有这样的东西。我尝试使用恢复工具,但无法对我删除的文件做出反应。我还尝试了下面的结帐转速。

abk@ABK-MacBook-Pro ~ % git reflog
5804383 (HEAD) HEAD@{0}: checkout: moving from 25fcd9553c8433778bcb2992de8730720f00e619 to 5804383
25fcd95 HEAD@{1}: checkout: moving from 58043834b94097edcca0b3218580da843518accf to 25fcd9553c8433778bcb2992de8730720f00e619
5804383 (HEAD) HEAD@{2}: checkout: moving from 52e5533fe8a288c32ab3339d637f9621ebf30b70 to 58043834b94097edcca0b3218580da843518accf
52e5533 (main) HEAD@{3}: checkout: moving from main to 52e5533
52e5533 (main) HEAD@{4}: reset: moving to HEAD
52e5533 (main) HEAD@{5}: reset: moving to HEAD
52e5533 (main) HEAD@{6}: reset: moving to HEAD
52e5533 (main) HEAD@{7}: commit: new token trial
25fcd95 HEAD@{8}: initial pull
macos recovery
© www.soinside.com 2019 - 2024. All rights reserved.