So I've read the principle but somehow I don't find a way of doing what I want
This is my
Please try this. Remember to negate the ignore of
.gitignore also, otherwise your rules won't work:
/* !.gitignore !wp-content
This comment helped me understand what was going on.