BBmine wrote:Can I make a script with bash using git?
Yes you can. I have poor internet so one of the things I like doing is collecting source repositories together into a local archive of code; I have a good 60-70 repos on a drive. I worked a bit on a script to automatically update all of them, but haven't had time to finish it. I'll attach it here if anyone wants to work from it.
Basically it assumes that all repositories will be in a folder ending in "-git", "-svn", "-hg" which cover the major version control software. It has a variable at the top dictating which folder it does this search in (right now it looks in a folder called “code” that is alongside the script). The following is a valid directory structure for the script.
code/
games-playable/
mods/
mod1-git/
mod2-git/
games/
game1-git/
game2-hg/
games-engine/
minetest/
minetestEngine-git/
minetestEngineFork-git/
Sorry it is in such a mess. I wrote it when I first started bash scripting and haven't gotten back to it. Frankly, I don't know if it even works...
P.S. it forced me to archive it... aparently even .txt files are not allowed. -.-