2.0.0 • Published 8 years ago
git-remote-upstream-url v2.0.0
git-remote-upstream-url
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
2.0.0
8 years ago