Hello
I have a repo and would like to not commit any of the core moodle files, but do want to commit things that I add. These things may be at same level in directory structure (i.e. local or themes) so I cannot link repo to one plugin folder as such.
My directory structure is
moodle39
├── moodle
├── moodledata
├── .gitignore
I have done git init on moodle39.
Into gitignore I have added
/moodle/*
!/moodle/local
!/moodle/local/mypluginname
The problem is my gitignore is working a little too well and no changes I make in local/mypluginname are being found. After git add --all it just says
modified: moodle (modified content, untracked content)
Do I have the syntax in the .gitignore wrong?
Best wishes
Jo