Socket
Socket
Sign inDemoInstall

g4c

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

g4c

A basic pure js git CLI implementation based on isomorphic-git.


Version published
Weekly downloads
5
decreased by-82.76%
Maintainers
1
Weekly downloads
 
Created
Source

g4c - Git for Cloud

A basic pure js git CLI implementation based on isomorphic-git.

  • Git tracker

Commands supported

  • git checkout --force HEAD
  • git pull
  • git pull --ff-only
  • git status
  • git add --all
  • git commit -m "My commit message"
  • git push

TODO:

  • git add FILE
  • git clone URL // Currently automatically clones during checkout

Setup

npm i -D g4c

npx g4c or npx git will work at that point.
In stackblitz git and g4c both work as node_modules/.bin is in the path.

Configuration Precedence

  • First the long form package.json -> repository field is read
  • Then, package.json g4c
  • Finally, SECRETS.g4c.json can veto all others

All of these are optional:

// SECRETS.g4c.json
{
  "proxy": "https://cors.isomorphic-git.org",
  "useProxyOnBareMetal": false,
  "username": "inu",
  "password": "neko",
  "authorName": "John Doe",
  "authorEmail": "john@example.com",
  "repoUrl": "https://github-sucks.com/user/project.git"
}

Known Issues

Issue tracker

Keywords

FAQs

Package last updated on 25 Aug 2022

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc