Create a new commit.
Resolves successfully with the SHA-1 object id of the newly created commit.
const sha = await commit({ fs, dir: '/tutorial', author: { name: 'Mr. Test', email: 'mrtest@example.com', }, message: 'Added the a.txt file'})console.log(sha)
Generated using TypeDoc
Create a new commit.
Returns
Resolves successfully with the SHA-1 object id of the newly created commit.
Example