diff options
author | John Ankarström <john@ankarstrom.se> | 2021-07-12 13:48:48 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-07-12 13:53:27 +0200 |
commit | 8fb5834ce91d51cf63907f7482624ca6ad09d1b2 (patch) | |
tree | 80ba7a46448c2bf663d0b96f7ee75c52ad290825 | |
parent | d49a97855859765321e50b51801e3d4de20942d7 (diff) | |
download | xutil-8fb5834ce91d51cf63907f7482624ca6ad09d1b2.tar.gz |
git-orig: Reset checked-out file
-rwxr-xr-x | git/git-orig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/git/git-orig b/git/git-orig index a792390..c7be71b 100755 --- a/git/git-orig +++ b/git/git-orig @@ -13,6 +13,7 @@ for f in "$@"; do done git checkout "$h" -- "$@" +git reset "$@" >/dev/null for f in "$@"; do mv -i "$f" "$f".orig |