Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
35 lines (27 loc) · 958 Bytes

File metadata and controls

35 lines (27 loc) · 958 Bytes
Copy raw file
Download raw file
Edit and raw actions
id cli
title isogit CLI
sidebar_label isogit CLI

Isomorphic-git comes with a simple CLI tool, named "isogit" because "isomorphic-git" is a lot to type. It is really just a thin shell that translates command line arguments into the equivalent JS API commands, so you should be able to run any current or future isomorphic-git commands using the CLI.

It always assumes two of the arguments:

  • fs is node's native fs module
  • dir is the current working directory

The first argument is the name of the command and then command line option flags to generate the argument object.

Example:

isogit clone --url=https://github.com/isomorphic-git/isomorphic-git --depth=1 --singleBranch

will run

git.clone({
  fs: require('fs'),
  dir: process.cwd(),
  url: 'https://github.com/isomorphic-git/isomorphic-git',
  depth: 1,
  singleBranch: true
})

For commands like git.log which return JSON, it pretty-prints the output.

Morty Proxy This is a proxified and sanitized view of the page, visit original site.