git.commit(message)
Creates commit for cloned repository.
import { git } from '@codemod.com/workflow' // clone const repository = await git.clone('git@github.com:codemod-com/codemod.git') // make changes await repository .files() .jsFam() .astGrep('console.log($$$A)') .replace('console.error($$$A)') // commit await repository .commit('Changed console.log to console.error')
Add a git commit message.
Was this page helpful?