I'd like to use Git in order to facilitate the development of my userscripts (21). Also, I'd like to have them hosted in GitHub too. (using Greasemonkey with Firefox in windows 10).
So, my question is: what is the suggested way to manage my userscripts using Git, in order to also have them hosted in GitHub?
keep a separate folder (e.g.
c:\my_scripts
which will be my repo folder) containing copies of my userscripts files,
i.e. each time I change one of my userscript files (located ingm_scripts
)
I'll have to manually copy it fromgm_scripts\script_subfolder
tomy_scripts
?have all my user userscripts in the same separate folder (my repo folder),
and link them to thegm_scripts
folder (using mklink -symbolic links- in a .bat file), as I've read in this answer?- create just one repository containing my
gm_scripts
content?
(insidegm_scripts
, apart from my 21 userscripts, I've got many other scripts installed, which I'll have to include in my.gitignore
file) - or is there any better way that I miss?
I've noticed the repos of two authors of many userscripts: @Mottie and @jerone
who have their many userscripts hosted in GitHub,
yet they follow different approaches:
Mottie's userscripts are all located in the root folder of the repo (just the .js files, there are no subfolders), (screenshot)
while jerone's userscripts are located each in its own subfolder in the repo (screenshot).
My guess is that Mottie has all his userscripts in the same separate folder (which is the repo), and has them linked to the gm_scripts
folder,
while jerone either just keeps a separate folder as a repo, with copies of his scripts,
or has his repo containing the gm_scripts
folder
(but, jerone's .gitignore doesn't contain entries for those files in gm_folder that should be ignored, such as .db
, .wal
, .shm
, config.xml
and such. So, I'm not sure if that's the case).