git diff
result is following.
>git diff
diff --git a/.husky/commit-msg b/.husky/commit-msg
old mode 100755
new mode 100644
diff --git a/.husky/pre-commit b/.husky/pre-commit
old mode 100755
new mode 100644
diff --git a/deploy/build.sh b/deploy/build.sh
old mode 100755
new mode 100644
diff --git a/deploy/container2local.sh b/deploy/container2local.sh
old mode 100755
new mode 100644
diff --git a/scripts/capture_all_test.sh b/scripts/capture_all_test.sh
old mode 100755
new mode 100644
diff --git a/src/hooks/useFuse.ts b/src/hooks/useFuse.ts
old mode 100755
new mode 100644
diff --git a/src/hooks/useSortableData.ts b/src/hooks/useSortableData.ts
old mode 100755
new mode 100644
git status
result is following.
On branch feature/NFTmarketplace
Your branch is up to date with 'origin/feature/NFTmarketplace'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: .husky/commit-msg
modified: .husky/pre-commit
modified: deploy/build.sh
modified: deploy/container2local.sh
modified: scripts/capture_all_test.sh
modified: src/hooks/useFuse.ts
modified: src/hooks/useSortableData.ts
no changes added to commit (use "git add" and/or "git commit -a")
There is no content difference, but only mode difference. I want to discard these changes. I did all approaches on How do I discard unstaged changes in Git?
But none of them works.
How can I do this?