Skip to content

eter-evans/actions-git

 
 

Repository files navigation

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.

⚠️ 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')

About

A git library for GitHub Actions

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 99.4%
  • JavaScript 0.6%