Please help me with a git ignoring.
I have files in the public/images directory and don't want to track them. But I need to track files in the /public/images/bonus2 directory. I used this code, and it works.
/public/images/
!/public/images/bonus2/
But when I try to move tracked files from public/images/bonus2 to public/images/bonus_ordering and make .gitignore like that:
/public/images/
!/public/images/bonus2/
!/public/images/bonus_ordering/
and make this command:
mv public/images/bonus2 public/images/bonus_ordering
git track that files in public/images/bonus2 removed, but it don't track that new files public/uploads/bonus_ordering appeared.
I used git add -f public/images/bonus_ordering, but I think that is not good solution. What I need to do instead of that?