"log/test.log" has already been "git added" but I wanna ignore any further modifications made to the file.
Solution: Update .gitignore and run "git update-index"
# .gitignore
log/**/*
# run git update-index
git update-index --assume-unchanged log/test.log
No comments:
Post a Comment