Hi,
I have not tried git within a shell script. But being a shell script, this is something i can do it easily based on your requirement. Only thing which confuse is the scss and js part. By the way, i will read this project again tomorrow morning my time to understand with a fresh mind.
You can refer my profile and if interested you can send me a message. I will be online at 8.30 IST.
Thank You