Skip to content

Commit 4c8f8cf

Browse files
committed
Use git restore instead of git reset
1 parent 3658ffb commit 4c8f8cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/unstage

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
set -euo pipefail
33

4-
git reset HEAD -- $*
4+
git restore --staged -- $*
55
echo
66
git status

0 commit comments

Comments
 (0)