Modules@robinpath/git

@robinpath/git

0.1.0Public

Git version control operations using the system git binary

@robinpath/git

Git version control operations using the system git binary

Category Functions Auth License

Why use this module?

The git module lets you:

  • Clone a git repository
  • Initialize a new git repository
  • Get the working tree status
  • Stage files for commit
  • Create a commit with the staged changes

All functions are callable directly from RobinPath scripts with a simple, consistent API.

Installation

npm install @robinpath/git

Quick Start

No credentials needed — start using it right away:

git.init

Available Functions

FunctionDescription
git.cloneClone a git repository
git.initInitialize a new git repository
git.statusGet the working tree status
git.addStage files for commit
git.commitCreate a commit with the staged changes
git.pushPush commits to a remote repository
git.pullPull changes from a remote repository
git.branchList, create, or delete branches
git.checkoutSwitch branches or restore working tree files
git.logShow the commit log
git.diffShow changes between commits, working tree, etc.
git.tagCreate or list tags
git.remoteList remote repositories
git.mergeMerge a branch into the current branch
git.stashStash or restore uncommitted changes
git.resetReset the current HEAD to a specified state

Examples

Initialize a new git repository

git.init

Get the working tree status

git.status

Stage files for commit

git.add

Integration with RobinPath

import { RobinPath } from "@wiredwp/robinpath";
import Module from "@robinpath/git";

const rp = new RobinPath();
rp.registerModule(Module.name, Module.functions);
rp.registerModuleMeta(Module.name, Module.functionMetadata);

const result = await rp.executeScript(`
  git.init
`);

Full API Reference

See MODULE.md for complete documentation including all parameters, return types, error handling, and advanced examples.

Related Modules

License

MIT

Versions (1)

VersionTagPublished
0.1.0latestyesterday
Install
$ robinpath install @robinpath/git
Version0.1.0
LicenseMIT
Unpacked Size5.3 KB
Versions1
Weekly Downloads0
Total Downloads0
Stars0
Last Publishyesterday
Createdyesterday

Category

devops