git-remote-upstream-url

2.0.0 • Public • Published

git-remote-upstream-url Build Status

Get the remote upstream url of a git repository

Based entirely on Sindre Sorhus' git-remote-origin-url.

Install

$ npm install --save git-remote-upstream-url

Usage

const gitRemoteUpstreamUrl = require('git-remote-upstream-url');
 
gitRemoteUpstreamUrl().then(url => {
    console.log(url);
    //=> 'git@github.com:RichardLitt/git-remote-upstream-url.git'
});

gitRemoteupstreamUrl([cwd])

cwd

Type: string
Default: process.cwd()

Working directory.

License

MIT © Richard Littauer

Readme

Keywords

Package Sidebar

Install

npm i git-remote-upstream-url

Weekly Downloads

9

Version

2.0.0

License

MIT

Last publish

Collaborators

  • richardlitt