Modules@robinpath/git
@robinpath/git
0.1.0PublicGit version control operations using the system git binary
@robinpath/git
Git version control operations using the system git binary
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
| Function | Description |
|---|---|
git.clone | Clone a git repository |
git.init | Initialize a new git repository |
git.status | Get the working tree status |
git.add | Stage files for commit |
git.commit | Create a commit with the staged changes |
git.push | Push commits to a remote repository |
git.pull | Pull changes from a remote repository |
git.branch | List, create, or delete branches |
git.checkout | Switch branches or restore working tree files |
git.log | Show the commit log |
git.diff | Show changes between commits, working tree, etc. |
git.tag | Create or list tags |
git.remote | List remote repositories |
git.merge | Merge a branch into the current branch |
git.stash | Stash or restore uncommitted changes |
git.reset | Reset 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
@robinpath/docker— Docker module for complementary functionality@robinpath/github— GitHub module for complementary functionality@robinpath/gitlab— GitLab module for complementary functionality@robinpath/vercel— Vercel module for complementary functionality@robinpath/netlify— Netlify module for complementary functionality
License
MIT
Versions (1)
| Version | Tag | Published |
|---|---|---|
| 0.1.0 | latest | yesterday |
Related Modules
devops
0
@robinpath/bitbucket
v0.1.1robinpath
Bitbucket module for RobinPath.
0 downloads
...
devops
0
@robinpath/box
v0.1.1robinpath
Box module for RobinPath.
0 downloads
...
devops
0
@robinpath/cache
v0.1.1robinpath
In-memory key-value cache with optional TTL expiration for temporary data storage
0 downloads
...
devops
0
@robinpath/cloudflare
v0.1.1robinpath
Cloudflare module for RobinPath.
0 downloads
...
Install
$ robinpath install @robinpath/git Version0.1.0
LicenseMIT
Unpacked Size5.3 KB
Versions1
Weekly Downloads0
Total Downloads0
Stars0
Last Publishyesterday
Createdyesterday

