hanse / is-git-repo

determine if a directory is a git repo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:JavaScript 100.0%