Don't have a portfolio? Create one in our new workshop using React!
Join our free community Discord server here!
Learn React with us!
Get job-ready with our Career Toolbox Track's career advice, resume tips, and more 🧰
🤖 Check out all our AI content here 👀
Use a .gitignore file to instruct your version control system to ignore or avoid tracking specified files or directories when you make a commit.
In your project, create a file named .gitignore in the root directory. Inside this file, you list the name of files and directories that you don’t want to include in your GitHub repo. In this case, it’s node_modules/.
All project files should be present when you commit and push your latest code to GitHub except for the node_modules directory and files.
Remember: the .gitignore file must be created and list any files or folders you want to ignore before pushing to GitHub.
In the following video, you’ll practice updating, uninstalling, and executing packages.