2.0.0 • Published 8 years ago

git-remote-upstream-url v2.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

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