How to Create a .gitignore in VS Code for GitHub (macOS + Windows) @WhatMakeArt
How to Create a .gitignore in VS Code for GitHub (macOS + Windows)  @WhatMakeArt
Uploaded October 2025 | Updated November 2026, 18 hours ago
How to Create a .gitignore in VS Code for GitHub (macOS and Windows)
Learn what a .gitignore file is, why it matters, and how to create one in Visual Studio Code so Git stops tracking unwanted files. We walk through ignoring macOS .DS_Store, show how to commit and sync the change, and where to find language and OS-specific .gitignore templates (macOS and Windows). Perfect for beginners setting up Git, GitHub, and VS Code.

Chapters

00:00 What is a .gitignore and why you need it
00:20 Spotting unwanted files (.DS_Store) in Source Control
00:34 Create .gitignore in VS Code
00:49 Add .DS_Store to ignore list
01:07 Commit .gitignore and sync
01:18 Other files to ignore and OS/project specifics
01:49 Using macOS .gitignore templates
02:02 Paste template into .gitignore in VS Code
02:18 Windows .gitignore option
02:30 Wrap-up: keep repos clean

What you’ll learn

- What a .gitignore file does in Git and GitHub
- How to create and edit .gitignore in Visual Studio Code
- Ignoring common OS files like .DS_Store (macOS) and using Windows templates
- Where to find GitHub’s official .gitignore templates for languages and frameworks
- Best practices to avoid committing node_modules and other generated files

Quick tips

- To ignore macOS finder files: add .DS_Store
- For Node.js projects: add node_modules/
- Always commit your .gitignore early so noise never hits the repo
How to Create a .gitignore in VS Code for GitHub (macOS + Windows)Blender Mixamo Tutorial: Start Any Animation in a T-Pose for Cloth SimulationWhich Wire Strippers Should You Use? 3 Types ComparedPrepare Images in Photoshop for Laser Cutting Woodblocks for PrintmakingAutodesk Fusion Nail Box Tutorial: Parametric Modeling With User Parameters, Mirror, and PatternsHow to Set Start and End Frames in Blender
What Make Art |

How to Create a .gitignore in VS Code for GitHub (macOS + Windows)

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER