Is there any command to get sha blob of a file?
vydingding opened this issue · 3 comments
vydingding commented
I want to update a file but I need to constantly change it's SHA in my node js code. Is there any command to get sha blob through .getSha or something?
kaizensoze commented
Would getBlob help?
https://kaizensoze.github.io/node-github/#api-gitdata-getBlob
vydingding commented
But it still requires a previous sha. And I know getContent gives the sha, but it doesn't give it separately; it gives out ALL the contents of the file including the sha.
kaizensoze commented
Right. I don't know of a getSha, but you can double check the github api doc: https://developer.github.com/v3/.