Don't know about webgl, but for source code there's an option in unity to export project- that's what I used today. Day before I used GitHub, don't actually know if it worked though ._.