-
Notifications
You must be signed in to change notification settings - Fork 178
Download raw file #106
Comments
@mickaelistria Below of the page there is an TXT option for downloading raw file. But downloaded file is base64 encoded. You will need to manually decode it :) |
That's not a very satisfying answer. Most other Git browsers allow to easily retrieve the content of the file without effort. Gitiles makes it hard. |
If you are in a browser context then this issue may be relevant: |
Duplicate of #7 |
Meanwhile this simple one liner can be used to download & decode a file within a Linux shell, e.g.:
|
@raymov , Thank you |
The curl script does not work with the standard Google setup which uses GSuite for authentication, unless curl somehow signs in using your GSuite Account. Here's your oneliner for vi to open the file downloaded from Gitiles:
Must be an overgeneralization to make sure all files, including binaries, can be transmitted across any communication channel, e.g. websockets, while overlooking (what seems to me) the most common use case. |
In Node you can use Buffer to decode and display the raw text file:
|
It seems like it's not possible to get a raw file from a repo with gitiles with a regular HTTP URL. This is a serious missing feature that currently makes us still need to use cGit.
The text was updated successfully, but these errors were encountered: