restore-cur-dir
Published at 2024-04-03
Last update over 365 days ago
Licensed under CC BY-NC-SA 4.0
softwares-and-tools
git
restore
ref: https://stackoverflow.com/questions/15404535/how-to-git-reset-hard-a-subdirectory
git restore --source=HEAD --staged --worktree -- .
git restore -s@ -SW -- <path>