@peter-evans/actions-git

A git library for GitHub Actions

Usage no npm install needed!

<script type="module">
  import peterEvansActionsGit from 'https://cdn.skypack.dev/@peter-evans/actions-git';
</script>

README

actions-git

CI

A git library for GitHub Actions.

This library extracts the git command internals of actions/checkout into a module. It has then been extended with additional git commands.

:warning: This library is intended to support my own GitHub actions. Updates may include breaking interface changes.

Usage

npm install @peter-evans/actions-git
import * as actionsGit from '@peter-evans/actions-git'
const workingDirectory = '.'
const lfs = false
const git = await actionsGit.createGitCommandManager(workingDirectory, lfs)

await git.fetch('my-branch')