Git Soft Reset Head
git reset --soft HEAD^
//resets head by 1
Filthy Fish
git reset --soft HEAD^
//resets head by 1
git reset --soft HEAD~3
git commit
git push —force-with-lease origin
git restore --source=HEAD --staged --worktree -- aDirectory
# or, shorter
git restore -s@ -SW -- aDirectory
git restore --source=HEAD --staged --worktree -- aDirectory
# or, shorter
git restore -s@ -SW -- aDirectory