# git **Repository Path**: git-huber/git ## Basic Information - **Project Name**: git - **Description**: No description available - **Primary Language**: Unknown - **License**: BSD-2-Clause - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-04-13 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README [![Pub Package](https://img.shields.io/pub/v/git.svg)](https://pub.dev/packages/git) [![Build Status](https://travis-ci.org/kevmoo/git.svg?branch=master)](https://travis-ci.org/kevmoo/git) Exposes a Git directory abstraction that makes it easy to inspect and manipulate a local Git repository. ```dart import 'package:git/git.dart'; import 'package:path/path.dart' as p; Future main() async { print('Current directory: ${p.current}'); if (await GitDir.isGitDir(p.current)) { final gitDir = await GitDir.fromExisting(p.current); final commitCount = await gitDir.commitCount(); print('Git commit count: $commitCount'); } else { print('Not a Git directory'); } } ```