.gitignore

Shell
$ echo debug.log >> .gitignore
$ git rm --cached debug.log
rm 'debug.log'
$ git commit -m "Start ignoring debug.log"
In Terminal, navigate to the location of your Git repository.
Enter touch .gitignore to create a .gitignore file.node_modules
.DS_Store
.envecho "
bin/**
lib/**
pyvenv.cfg
**.pyc
"  > .gitignore
cat .gitignoreYou can ignore entire directories, just by including their paths and putting a / on the end:

1
2
node_modules/
logs/
Source

Also in Shell: