gitx

Use git with custom identity file

Usage no npm install needed!

<script type="module">
  import gitx from 'https://cdn.skypack.dev/gitx';
</script>

README

Gitx

NPM version Build Status Build Status NPM downloads

Use git with custom identity file


Install

$ npm install gitx -g

Usage

$ gitx -i ~/.ssh/id_rsa clone git@github.com:popomore/test-id.git

API

var git = require('gitx')(process.env.HOME + '/.ssh/id_rsa');

// use child_process.spawn
git.spawn(['clone', 'git@github.com:popomore/test-id.git'], {stdio: 'inherit'});

// use child_process.exec
git.exec('clone git@github.com:popomore/test-id.git', {stdio: 'inherit'});

LICENSE

Copyright (c) 2015 popomore. Licensed under the MIT license.