带sftp插件的Visual Studio Code上载了.git文件夹和.gitignore文件

时间:2018-09-12 13:25:15

标签: visual-studio-code sftp

我有这个sftp.json文件:

{
    "name": "projectname",
    "remotePath": "/htdocs/",
    "host": "myhostdomain",
    "protocol": "ftp",
    "username": "user",
    "password": "pass",
    "passive": true,
    "watcher": {
        "files": "**/*",
        "autoUpload": true,
        "ignore": [
            ".vscode",
            ".git",
            ".gitignore",
            "config.php"
        ]
    }
}

实际上忽略了.vscode文件夹和config.php文件,但没有忽略.git.gitignore

我该如何解决? .git文件夹的更改会产生大量的网络使用情况。

0 个答案:

没有答案