I wished to download the mysite folder from this link: https://github.com/username/repository/master/
There is a button Download ZIP. If you want to do a sparse checkout there are many solutions on the site. For example here.
Download ZIP