I'm wondering what is the best way of setting about this.
I use a PHP application called dokuwiki, it's mostly 'as released' and this makes updates etc. fairly easy. However I have a few local patches which I would like to keep track of and also would like to be able to re-install if/when they get overwritten when I get a newer version of dokuwiki.
How do I do this using git (or similar)? I don't want to sit at the bleeding edge of dokuwiki releases which is where I would be if I ran a local copy of the dokuwiki git repository.
What I want to do is to be able to use the current released version of dokuwiki but maintain a local collection of minor changes and patches.
(Dokuwiki isn't the only software I'd like to do this with, it's just the one that's obvious to me at the moment).