Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

git reset hard directory

git restore --source=HEAD --staged --worktree -- aDirectory
# or, shorter
git restore -s@ -SW  -- aDirectory
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #git #reset #hard #directory
ADD COMMENT
Topic
Name
5+1 =