I just wonder what would be the best way to download an entire GitHub directory/folder in raw format using a command line instead of using the GUI.
I need to download all the existing files and there is a long list.
What would you recommend?
I just wonder what would be the best way to download an entire GitHub directory/folder in raw format using a command line instead of using the GUI.
I need to download all the existing files and there is a long list.
What would you recommend?
You could:
curl the archive of the GitHub repo (HEAD content as a zip or tar file)
Example:
curl -LkSs https://api.github.com/repos/ziyaddin/xampp/tarball -o master.tar.gz
extract from that tar file a folder
Example:
tar -xzf backup.tar.gz --strip-components=3 -C a/b/m
You can extract any file or folder from that archive.