A CS course might cover the architecture of git, or the technical underpinnings but probably shouldn't teach you how to do the basics. In my program this sort of skill was expected to be learned on your own, or maybe a single optional tutorial session with the TA
My uni has an on-prem installation of Github and this is where you upload and collaborate on your solutions. This isn't course specific, this is just what you do.