🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@robinpath/git

Package Overview
Dependencies
Maintainers
4
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@robinpath/git

Git version control operations using the system git binary

latest
npmnpm
Version
0.3.0
Version published
Weekly downloads
15
36.36%
Maintainers
4
Weekly downloads
 
Created
Source

@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

robinpath add @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.

License

MIT

Keywords

git

FAQs

Package last updated on 06 May 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts