Install git. Then type git clone <url>
For example to download miniaudio you would type
git clone https://github.com/mackron/miniaudio.git
And it downloads all the code for you. There's a button on github that says "code" if you click it you can copy the URL for cloning.