Skip to content

Commit

Permalink
Use git restore instead of git reset
Browse files Browse the repository at this point in the history
  • Loading branch information
iain committed Oct 24, 2020
1 parent 3658ffb commit 4c8f8cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/unstage
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
set -euo pipefail

git reset HEAD -- $*
git restore --staged -- $*
echo
git status

0 comments on commit 4c8f8cf

Please sign in to comment.