I wish to make a change in one file in my git repo, via browser.
I naturally headed to the Github API to see what I can do. The Create a commit
endpoint requires the hash of a tree object. Is there a way to generate this tree hash inside a browser?
My repo is around ~100Mb, so cloning it inside the browser is not doable. Is there a way to clone a subfolder (sparse checkout) and then calculate the new tree hash, all in browser (with a git-inside-browser tool like isomorphic-git
)?
Github has an UI for manually editing the files in their webapp. I am trying to recreate the same thing in my own webapp.