Gitignore
Git Ignore Fiiles
mkdir logs
echo hello > logs/dev.log
git status
echo logs/ > .gitignore
code .gitignore
git add .gitignore
git commit -m "Added git ignore"
Git Ignore Tracked Files
mkdir bin
echo hello > bin/app.bin
git status
git add .
git commit -m "Added bin"
code .gitignore
bin/
git add .
git commit -m "Include bin/ in gitingnore"
echo helloworld > bin/app.bin
git ls-files
gt rm -h
git rm --cached -r bin/
git commit -m "Removed bin"
git rm --cached -r bin/
removes folder only from the staging area not from working directory
Ignore File Reference