I\'m using this API to update a file on my repo, it requires me to have a valid SHA blob for a file that I want to update:
http://developer.github.com/v3/repos/contents/
If you use GraphQL API v4, you can use the following to find the sha of a specific file :
{ repository(owner: "testacc01", name: "testrepo01") { object(expression: "master:test.txt") { ... on Blob { oid } } } }
Try it in the explorer