@almaclaine/git-utils

Utilities for working with git.

Usage no npm install needed!

<script type="module">
  import almaclaineGitUtils from 'https://cdn.skypack.dev/@almaclaine/git-utils';
</script>

README

git-utils

Utilities for working with git.

API

Functions assume user is signed in to git with access to the repository being acted on.

Listing

Functions

  • commitProject

Details

Functions

commitPackage

Takes a package name and commit description and adds all the files in the package and commits with message: <pack>: <desc>.

Throws an error if not called from the root of a git repository (contains the .git directory).

const commitPackage = (pack: string, desc: string) => Void