Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Limits in Github gists

Tags:

github

gist

Is there a limit in the size of a GitHub gist or a maximum number of lines?

I am trying to make a gist with a generated file from logs, and receive a 422 validation error once in a while when the logs are getting relatively large.

like image 973
Tanj Avatar asked Oct 14 '25 09:10

Tanj


1 Answers

It is likely that the GitHub web interface has a limit on the size of data that can be uploaded. What you can do is create a gist with some data that you want (such as a README or a portion of the data), clone it, and then add the rest of the data via Git and push.

Note that if your log is very large, GitHub may not display it all in the web interface for performance reasons.

Having said that, while it is fine to create a gist to share a particular log snippet, in general Git repositories are not a good way to store logs or other automated data, so you wouldn't want to continually push new logs to that gist or otherwise update it in an automated way to show new log entries.

like image 123
bk2204 Avatar answered Oct 17 '25 00:10

bk2204