Open coding-to-music opened 3 years ago
https://www.gloomycorner.com/downloading-a-single-file-or-folder-from-a-github-repo/
Download a single file from a GitHub repo Download a file with its raw URL.
Browser to the file on GitHub you are want to download, right click the raw button to get its rawURL. Use curl command line tool or something like that to download the file:
$ curl https://raw.githubusercontent.com/[username]/[repo-name]/[branch-name]/[file-path]/somefile.js > my-named-file.js
$ curl -o my-named-file.js https://raw.githubusercontent.com/[username]/[repo-name]/[branch-name]/[file-path]/somefile.js
$ curl -O https://raw.githubusercontent.com/[username]/[repo-name]/[branch-name]/[file-path]/somefile.js
$ curl –O [URL1] –O [URL2]
$ curl -x [proxysever.test.com:3128] -O [URL]
Download a single folder from a GitHub repo
It’s super easy to use:
Go to DownloadGit, input the URL of the file or folder you want to download like https://github.com/gloomic/phaser-flappy-bird/tree/main/screenshots, click Download button.
Use Subversion for usual usage Although GitHub does not support git-archive, but it supports some Subversion features that we can use to download a file or a folder. If you have not Subversion installed, install it (For Windows, just install TortoiseSVN).
You need to change the URL to a file or folder, replace tree/[branch] with trunk:
$ svn export https://github.com/gloomic/phaser-flappy-bird/trunk/screenshots Resources Stackoverflow: Download a single folder from GitHub Download Git repo Apache Suberversion
GitHub REST API
Use Digitalocean marketplace image for docker Has git Has docker However, needed to add my git credentials email and username needed to install npm my dotfile aliases such as ll were in the remote container Would like to be able to create via the command line
https://github.com/coding-to-music/bash_aliases_docker_alias_cheat_sheet/blob/master/.devcontainer/devcontainer.json
https://github.com/coding-to-music/bash_aliases_docker_alias_cheat_sheet/blob/master/.devcontainer/Dockerfile
http://dotfiles.github.io/bootstrap/
https://github.com/dotphiles/dotphiles
https://github.com/dotphiles/dotsync