filmov
tv
How to Create & Use GitIgnore File Properly | Full Guide

Показать описание
This is a complete guide on gitignore files.
This video answers following questions:
- How to use gitignore file
- Why we use gitignore file
- What are benefits of gitignore file
- Why gitignore is important
- Which tech stack uses gitignore file
- How to use gitignore generator tool
- How to create gitignore file
- What to do in case of gitignore not working
- Which one is gitignore directory
- How to add files to gitignore
- How to create gitignore file
There is a . before gitignore in the file name. Its like a system file or hidden file. When we use package managers, such as Yarn package manager or npm package manager, we install project dependencies. Project dependencies bring their own dependencies. All of it is kept in a folder called node_modules in case of nodeJS.
If you are not working on a project, it's taking up space in your system. If you have pushed project to github, it will just sit there and won't run. It will not need node_modules or packages while sitting in a repo at github. Almost all of those packages gonna get updates over time. So why keep old packages?
So to keep node_modules folder from being uploaded to github or remote repository, we use gitignore file. gitignore file does not just keep node_modules folder from being uploaded but you can also name any other file or folder in it as well.
Your project may have other private files like, log files, zip files, database migration files, env file etc. You can ignore all of these files by using gitignore. You can create a gitignore file yourself or there are gitignore tools that can generate boilerplate for any tech stack.
Thank You!
Channel Support
👍 LIKE VIDEO
👊 SUBSCRIBE
🔔 PRESS BELL ICON
✍️ COMMENT
#git #gitignore #nodejs #WebDevelopment #WebStylePress
This video answers following questions:
- How to use gitignore file
- Why we use gitignore file
- What are benefits of gitignore file
- Why gitignore is important
- Which tech stack uses gitignore file
- How to use gitignore generator tool
- How to create gitignore file
- What to do in case of gitignore not working
- Which one is gitignore directory
- How to add files to gitignore
- How to create gitignore file
There is a . before gitignore in the file name. Its like a system file or hidden file. When we use package managers, such as Yarn package manager or npm package manager, we install project dependencies. Project dependencies bring their own dependencies. All of it is kept in a folder called node_modules in case of nodeJS.
If you are not working on a project, it's taking up space in your system. If you have pushed project to github, it will just sit there and won't run. It will not need node_modules or packages while sitting in a repo at github. Almost all of those packages gonna get updates over time. So why keep old packages?
So to keep node_modules folder from being uploaded to github or remote repository, we use gitignore file. gitignore file does not just keep node_modules folder from being uploaded but you can also name any other file or folder in it as well.
Your project may have other private files like, log files, zip files, database migration files, env file etc. You can ignore all of these files by using gitignore. You can create a gitignore file yourself or there are gitignore tools that can generate boilerplate for any tech stack.
Thank You!
Channel Support
👍 LIKE VIDEO
👊 SUBSCRIBE
🔔 PRESS BELL ICON
✍️ COMMENT
#git #gitignore #nodejs #WebDevelopment #WebStylePress
Комментарии