I have following in .gitignore:
wordpress/*
!wordpress/wp-content/themes/my-theme/
!wordpress/wp-content/themes/my-theme/*
But when I do git status
it's not seeing the untracked files.
What did I do wrong?
I have following in .gitignore:
wordpress/*
!wordpress/wp-content/themes/my-theme/
!wordpress/wp-content/themes/my-theme/*
But when I do git status
it's not seeing the untracked files.
What did I do wrong?
Based on the example in the docs, I believe you want something like
!/wordpress
/wordpress/*
!/wordpress/..../
However, my preferred solution is to add files I want to tracked. I would do in ignore (either .git/info/exclude
for just you or .gitignore
for everyone):
/wordpress/*
And then run
git add -N path/to/files/to/track