Skip to content

hanse/is-git-repo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

is-git-repo

Check if a given directory is a git repository.

isGitRepo('/home/user/my-repo', function(git) {
  console.log(git) // boolean
});

Supports both regular and bare repositories.

License

MIT

About

determine if a directory is a git repo

Resources

Stars

Watchers

Forks

Packages