git ignore not working
git rm -r --cached .;
git add .;
git commit -m "Untracked files issue resolved to fix .gitignore";
git ignore not working
git rm -r --cached .;
git add .;
git commit -m "Untracked files issue resolved to fix .gitignore";
git ignore not working
# First save your changes to a branch on the remote repo
# If you don't have changes skip these three
git add .
git commit -m "commit message"
git push origin [branchname]
# Then remove all cached files
git rm -r --cached .
# Add all the files back in
git add .
# The files you added to the .gitignore should now be greyed out in
# the file explorer window if you're using vscode
.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
why some gitignore not working
- Copy file to ignore in other location
- Push a commit with deleted file
- Copy back the deleted file
gitignore is not working
git rm -rf --cached .
git add .
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us