git-remote-upstream-url
v2.0.0
Published
Get the remote upstream url of a git repository
Downloads
20
Readme
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);
//=> '[email protected]:RichardLitt/git-remote-upstream-url.git'
});
gitRemoteupstreamUrl([cwd])
cwd
Type: string
Default: process.cwd()
Working directory.
License
MIT © Richard Littauer