Sourcetree не игнорирует узлы модулей - PullRequest
0 голосов
/ 31 октября 2019

В Sourcetree у меня есть 1350 неустановленных файлов из-за обновления модулей узлов. Я не хочу, чтобы он отслеживал узлы модулей.

enter image description here У меня есть следующая структура: enter image description here

И в.gitignore У меня есть узлы модулей, см .:

    # See http://help.github.com/ignore-files/ for more about ignoring files.

# compiled output
/dist
/tmp
/out-tsc

# dependencies
/node_modules

# IDEs and editors
/.idea
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace

# IDE - VSCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json

# misc
/.sass-cache
/connect.lock
/coverage
/libpeerconnection.log
npm-debug.log
yarn-error.log
testem.log
/typings

# System Files
.DS_Store
Thumbs.db

Я не понимаю, почему он все еще отслеживает узлы модулей, если он находится в gitignore

1 Ответ

0 голосов
/ 10 ноября 2019

Я думаю, /node_modules запись заставляет git игнорировать только папку модулей в корневом каталоге. Ваша есть в каталоге Code, а не в корневом.

Попробуйте использовать просто node_modules.

...