Skip to content

Instantly share code, notes, and snippets.

@pavankjadda
pavankjadda / How to fix gitignore not working issue.md
Last active June 2, 2025 11:40
How to fix "gitignore not working" issue

FYI: Created blog post with more details

How to fix ".gitignore not working" issue?

Sometimes git does not exclude files/folders added .gitignore especially if you had commited them before. Here is how to fix it. I am ignoring node_modules from Angular project as an example

  1. Update .gitignore with the folder/file name you want to ignore. You can use anyone of the formats mentioned below (prefer format1)
### Format1  ###
node_modules/
@Chapoton
Chapoton / gulpfile.js
Created May 29, 2019 14:31
Updated gulpfile for Smashing Magazine article
// Updated gulpfile for the following article: https://www.smashingmagazine.com/2018/07/pattern-library-first-css/
'use strict';
const gulp = require('gulp');
const fractal = require('./fractal.js');
const logger = fractal.cli.console;
const sass = require('gulp-sass');
const sassGlob = require('gulp-sass-glob');
const plumber = require('gulp-plumber');