I have this .gitignore
file:
.DS_Store
node_modules
/dist
screen
# local env files
.env.local
.env.*.local
# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
# Vue Browser Extension Output
*.pem
*.pub
*.zip
/artifacts
I'm trying to add a rule that will tell to git to ignore the .jpeg
or .jpg
and .code-workspace
files, but the added rules added are ignored when I push the repository online and these files are anyway copied. Is this syntax correct?
# Ignoring psd and image files
*.jpg
*.psd
# Ignoring VS workspace files
*.code-workspace