NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
pub.dev
pub.dev, #747 most downloaded on pub.dev
Git command line wrapper. Exposes a Git directory abstraction that makes it easy to inspect and manipulate a local Git repository.
Latest stable
2.5.0
Last release 19 days ago
03 Nov 2026
Ships fairly regularly
a new release about every 8 months
Nearly every release is documented
notes for 31 of 32 stable releases
Nothing withdrawn
no release was ever pulled
13 years old
34 releases · first in 2014
Drag across the ruler to compare, or tap a release to open it.
Added includeUntracked option to GitDir.isWorkingTreeClean() . It was listed in the 2.4.0 notes but did not ship in that release.
includeUntracked option to GitDir.isWorkingTreeClean(). It wasGitDir.fromExisting(allowBare: true), which threw for every bareAdded WorktreeEntry and GitDir.worktrees() to list active worktrees.
WorktreeEntry and GitDir.worktrees() to list active worktrees.BranchTracking and GitDir.branchTracking() to list trackingGitDir.isSecondaryWorktree() and GitDir.removeWorktree().GitDir.commitsAheadBehind(), GitDir.upstreamBranch(), andGitDir.remoteDefaultBranch().GitDir.isAncestor(), GitDir.fetch(), and GitDir.deleteBranch().allowBare flag to GitDir.fromExisting().includeUntracked option to GitDir.isWorkingTreeClean().runGit now sets runInShell: Platform.isWindows (avoiding /bin/sh -cGIT_TERMINAL_PROMPT=0.GitDir.fromExisting now returns a consistently canonicalized path acrossallowSubdirectory: true.Commit.parse, Commit.parseRawRevList, and TreeEntry.fromLsTree nowFormatException on malformed input.Your coding agent can read these notes before it upgrades. Set up the MCP server →
Fix GitDir constructor when in a submodule.
GitDir constructor when in a submodule.Fix safe.bareRepository = explicit git configuration.
safe.bareRepository = explicit git configuration.Added support for lightweight tags.
Correctly handle multi-line commit messages on Windows.
Added echoOutput parameter to GitDir.runCommand.
echoOutput parameter to GitDir.runCommand.Added echoOutput parameter to runGit.
echoOutput parameter to runGit.- Require Dart 2.12 - Support null-safety.
GitDir.init added an optional initialBranch parameter.
GitDir.init added an optional initialBranch parameter.Allow BranchReference to handle a repo in the "detached head" state.
BranchReference to handle a repo in the "detached head" state.Improve logic of parsing commits.
- A LOT of breaking changes.
GitDir.fromExisting added a allowSubdirectory parameter.
GitDir.fromExisting added a allowSubdirectory parameter.Support Dart 2 stable releases.
Support Dart 2 stable releases.
Drop support for Dart 1.
Remove unsupported dependencies.
Nothing published for this version
Use which package to try harder to find git executable.
which package to try harder to find git executable.Run git in the shell – trying to address issues on Windows.
git in the shell – trying to address issues on Windows.- Internal refactoring.
- Strong-mode fixes.
GitDir added updateBranchWithDirectoryContents.
GitDir added updateBranchWithDirectoryContents.Migrated code to Dart 1.9 async.
Migrated code to Dart 1.9 async.
Improved testing.
Tweaks to Commit to stop using deperecated APIs from bot.
Commit to stop using deperecated APIs from bot.bot package.Updated hop and added hop_unittest dev dependencies.
hop and added hop_unittest dev dependencies.Updated max version of bot dependency.
bot dependency.Made fields on TreeEntry final.
TreeEntry final.BREAKING PopulateTempDir typedef.
PopulateTempDir typedef.GitDir.populateBranch - moving away from TempDir from
bot_ioNothing published for this version
Deprecated PopulateTempDir typedef.
PopulateTempDir typedef.GitDir.populateBranch - moving away from TempDir from
bot_ioGitDir.updateBranch like populateBranch, but exposes a
DirectoryMoved scheduled_test dependency to dev_dependencies
scheduled_test dependency to dev_dependenciesSupporting next release of bot_io
bot_iohop_runnerGit class.Maintains 100% compatibility with the bot_git library from the bot_io package as of release 0.25.1+2.
bot_git library from the bot_io
package as of release 0.25.1+2.Nothing published for this version
One column per quarter.