I just found one of a dev tool called gitignore.io which as it's name suggests, helps generate a gitignore file for our project.
Web
- Go to gitignore.io
- Fill in the languages, IDE's, OS's you're using
- Click Create
- Copy Code and paste it into a
.gitignore
file in your project root
CLI
- Go to this link
- Follow instructions based on your os and terminal
- Go to a project
- List possibilities for gitignore
gi list
This will list all the possibilities for your
.gitignore
file that you can choose from
- Create a
.gitignore
file Say, I am choosingnode
,vscode
, andmacos
as my options.gi node,vscode,macos >> .gitignore
And voilà, your .gitignore
file has been created!