Answers for ".gitignore does not work"

3

.gitignore not working

git rm -rf --cached .
git add .
Posted by: Guest on July-28-2021
1

.gitignore not working

# Remember to commit everything you've changed before you do this!
git rm -rf --cached .
git add .

# This removes all files from the repository and adds them back
# (this time respecting the rules in your .gitignore).

# Source: https://stackoverflow.com/a/25436481
Posted by: Guest on August-26-2021
0

.gitignore not working

git rm -r --cached .;
git add .;
git commit -m "Untracked files issue resolved to fix .gitignore";
git push
Posted by: Guest on April-07-2022

Code answers related to ".gitignore does not work"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language