Answers for "git reset hard directory"

5

git soft reset head

git reset --soft HEAD^
//resets head by 1
Posted by: Guest on August-13-2020
3

git reset head

sudo git reset --hard Head
Posted by: Guest on December-09-2020
0

git reset hard directory

git restore --source=HEAD --staged --worktree -- aDirectory
# or, shorter
git restore -s@ -SW  -- aDirectory
Posted by: Guest on December-28-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language