-
Notifications
You must be signed in to change notification settings - Fork 727
Open
Description
> ls -la
-rwxr-xr-x 1 kurganov kurganov 499 Oct 8 14:33 apply-gitconfig-for-nix.sh*
- Открываем проект в VS Code
> ls -la
-rw-r--r-- 1 kurganov kurganov 499 Oct 8 14:35 apply-gitconfig-for-nix.sh
У файла поменялись права, поэтому файл отобразится в Changes not staged for commit
> git status
On branch master
Your branch is up to date with 'origin/master'.
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: apply-gitconfig-for-nix.sh
> git diff apply-gitconfig-for-nix.sh
diff --git a/apply-gitconfig-for-nix.sh b/apply-gitconfig-for-nix.sh
old mode 100755
new mode 100644
Файл будет постоянно отображаться в Changes not staged for commit, что может сбить с толку студентов, впервые изучающих git. Быстро проблему решает команда git config core.filemode false
:
Скорее всего, какой-то конфликт wsl2 и VS Code на винде
Metadata
Metadata
Assignees
Labels
No labels