download github repository

C++
git clone "then thing you can copy with https"git init .
git remote add origin [url of the repo]
git fetch origin

// To push
git push --set-upstream origin master
git branch -f master origin/mastergit clone https://github.com/username/project-name.git
Source

Also in C++: