Add and Apply .gitignore
- Create a file named
.gitignore
in directory where your.git
directory exists. - Run these commands:
git rm -r --cached .
git add .
git commit -m ".gitignore is now working"
.gitignore
in directory where your .git
directory exists.git rm -r --cached .
git add .
git commit -m ".gitignore is now working"