curl -L -O https://raw.githubusercontent.com/[user]/[repo]/[branch]/[file]
If you have the URL of the raw file, use curl or wget in your terminal:
Open the file on GitHub. Click the Raw button in the top-right corner to see the text-only version. Right-click anywhere on the page and select Save Link As... (or Save As... ) to save it as a .txt or its original extension.
Download: Raw Txt
curl -L -O https://raw.githubusercontent.com/[user]/[repo]/[branch]/[file]
If you have the URL of the raw file, use curl or wget in your terminal:
Open the file on GitHub. Click the Raw button in the top-right corner to see the text-only version. Right-click anywhere on the page and select Save Link As... (or Save As... ) to save it as a .txt or its original extension.