Git Ignore File In Working Repo

[Solved] Git Ignore File In Working Repo | Shell - Code Explorer | yomemimo.com
Question : how to use gitignore to ignore a folder

Answered by : aryan-pegwar

You can ignore entire directories, just by including their paths and putting a / on the end:
1
2
node_modules/
logs/

Source : https://www.pluralsight.com/guides/how-to-use-gitignore-file | Last Update : Wed, 20 May 20

Question : how to put files into gitignore

Answered by : vivacious-vicua-vyolryov2xzg

$ echo debug.log >> .gitignore
$ git rm --cached debug.log
rm 'debug.log'
$ git commit -m "Start ignoring debug.log"

Source : https://www.atlassian.com/git/tutorials/saving-changes/gitignore | Last Update : Wed, 10 Jun 20

Answers related to git ignore file in working repo

Code Explorer Popular Question For Shell