Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

git reset a folder

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