How to automatically get a certain file(>1MB) from git
<p>I want to grab a certain file from a private git repository daily under linux.
I've got no problem with files under 1MB via <a href="https://developer.github.com/v3/repos/contents/#get-contents">Get content API</a> with curl command as follows.</p>

<pre><code>curl -H "Content-Type: application/json" -H "Authorization: token $TOKEN" -H 'Accept: application/vnd.github.v3.raw' -O $FILEPATH
</code></pre>

<p>As the file gets bigger than 1MB now, I have no idea how to do this now.</p>

<p>Git tells me to use the <a href="https://developer.github.com/v3/git/blobs/#get-a-blob">Git Data API</a> to get a blob(up to 100MB, more than enough for me).</p>

<p>Though I've been trying to find a way to grab the SHA1 of the frequently updating file, I haven't came across any applicable method yet. Any suggestion?</p>

<p>Or maybe method other than using git API?</p>

<p>Thanks in advance.</p>