Skip to content

marco-c/git-list-remotes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

git-list-remotes

List the remotes of a git repository

Build Status dependencies devdependencies

API

The function exported by the module accepts one parameter:

  • directory: the directory of the git repository.

It returns a promise that resolves to an array containing the names of the remotes of the git repository.

Example

var gitListRemotes = require('git-list-remotes');

gitListRemotes('.').then(function(remotes) {
  console.log('Found ' + remotes.length + ' remotes');
  console.log('The remotes are: ' + remotes.join(', '));
});

About

List the remotes of a git repository

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published