In my research I found that there seems to be no "single source of truth" for where to post MediaWiki questions. MediaWiki questions have been posted on these many Stack Exchange network subdomains:
ProWebmasters, Security, Web Applications, Software Recommendations, (and probably others).
So, I'm taking a shot and posting my question here, because the question is about hosting mediawiki sites and software best practices.
1a) What is considered best practice in 2021 for how to put a mediawiki site under Git version control? I tried CD into mediawiki folder and type
git init. But, it gives me umpteen warnings about CRLF line endings. I understand that it has to do with auto converting from Linux line endings to Windows and vice versa. I chose to set autocrlf to true, as is recommended by many sources.
But, then I just get all these warning messages. So, I found a video on how to suppress the warning messages with
.gitattributes file, which worked, but __it didn't shorten the length of time to finish
git add of all the files and folders in MediaWiki. At present, I have deleted the .gitattributes file since I at least now I will know that Git is still processing (by the warning messages) and not just stuck or hung on a process.
1b) After deleting the .gitattributes file the git add process seemed to finish even quicker! Upon completion of git add, I see all these "create mode 100644" messages. I don't know if I should be worried about them or not. What does
create mode 100644 mean and should I be worried about that at all?
1c) The last part of my question is simply this. If I were to say I was going to put 100 GB of video and zip files under git source control many of you would rightly advise "Don't do it, bro!", because although you can do it, it is not a good idea. Based on how long it took just to do the
git add command, I'm wondering if putting mediawiki under git is even a good idea. I want to edit files in my mediawiki install, track the edits, be able to revert them when necessary, experiment on other branches, etc.Therefore,
Is it even recommended or not a good idea to put installations of framework-based websites like MediaWiki, WordPress, etc. under git source control? Or are the perhaps special considerations that one must know to do it safely/correctly/best-practice-ly?