PackageTrack
Sign in Get early access

git

Git command line wrapper. Exposes a Git directory abstraction that makes it easy to inspect and manipulate a local Git repository.

2.3.2 272K downloads/mo #726 most downloaded on pub.dev kevmoo/git

What this package is like to depend on

Last release 11 months ago

04 Sep 2025

Ships fairly regularly

a new release about every 7 months

Nearly every release is documented

notes for 29 of 30 stable releases

Nothing withdrawn

no release was ever pulled

13 years old

32 releases · first in 2014

1 release in the last 12 months

see the full history below

Release timeline

32 releases · Feb 2014 to Sep 2025
2015 2017 2019 2021 2023 2025
Release Pre-release

Releases

latest 32
  1. 2.3.2 04 Sep 2025
    Release notes
    • Fix GitDir constructor when in a submodule.
    Open source →
    Release notes
    • Fix GitDir constructor when in a submodule.
    Open source →
  2. 2.3.1 06 Feb 2025
    Release notes
    • Fix safe.bareRepository = explicit git configuration.
    Open source →
    Release notes
    • Fix safe.bareRepository = explicit git configuration.
    Open source →
  3. 2.3.0 03 Jun 2024
    Release notes
    • Added support for lightweight tags.
    • Require Dart 3.4
    Open source →
    Release notes
    • Added support for lightweight tags.
    • Require Dart 3.4
    Open source →
  4. 2.2.1 16 May 2023
    Release notes
    • Correctly handle multi-line commit messages on Windows.
    • Require Dart 2.19
    Open source →
    Release notes
    • Correctly handle multi-line commit messages on Windows.
    • Require Dart 2.19
    Open source →
  5. 2.2.0 03 Nov 2022
    Release notes
    • Added echoOutput parameter to GitDir.runCommand.
    Open source →
  6. 2.1.0 02 Nov 2022
    Release notes
    • Require Dart 2.18
    • Added echoOutput parameter to runGit.
    Open source →
  7. 2.0.0 09 Mar 2021
    Release notes
    • Require Dart 2.12
    • Support null-safety.
    Open source →
  8. 1.2.0 05 Feb 2021
    Release notes
    • Require Dart 2.10.5
    • GitDir.init added an optional initialBranch parameter.
    Open source →
  9. 1.1.0 15 Sep 2020
    Release notes
    • Allow BranchReference to handle a repo in the "detached head" state.
    Open source →
  10. 1.0.1 18 Jul 2019
    Release notes
    • Improve logic of parsing commits.
    Open source →
  11. 1.0.0 25 Apr 2019
    Release notes
    • A LOT of breaking changes.
    Open source →
  12. 0.5.1 09 Mar 2018
    Release notes
    • GitDir.fromExisting added a allowSubdirectory parameter.
    Open source →
  13. 0.5.1+1 23 Jul 2018
    Release notes
    • Support Dart 2 stable releases.

    • Drop support for Dart 1.

    Open source →
  14. 0.5.0 09 Mar 2018
    Release notes
    • Remove unsupported dependencies.
    Open source →
  15. 0.5.0-dev 09 Mar 2018 pre-release

    Nothing published for this version

  16. 0.4.4 16 Apr 2015
    Release notes
    • Use which package to try harder to find git executable.
    Open source →
  17. 0.4.4+1 16 Apr 2015
    Release notes
    • Run git in the shell – trying to address issues on Windows.
    Open source →
  18. 0.4.4+2 29 Oct 2015
    Release notes
    • Internal refactoring.
    Open source →
  19. 0.4.4+3 12 Dec 2017
    Release notes
    • Strong-mode fixes.
    Open source →
  20. 0.4.3 07 Apr 2015
    Release notes
    • GitDir added updateBranchWithDirectoryContents.
    Open source →
  21. 0.4.2 04 Apr 2015
    Release notes
    • Migrated code to Dart 1.9 async.

    • Improved testing.

    Open source →
  22. 0.4.1 07 May 2014
    Release notes
    • Tweaks to Commit to stop using deperecated APIs from bot.
    • Updated constraint on bot package.
    Open source →
  23. 0.4.1+1 25 May 2014
    Release notes
    • Updated hop and added hop_unittest dev dependencies.
    Open source →
  24. 0.4.1+2 14 Jan 2015
    Release notes
    • Updated max version of bot dependency.
    Open source →
  25. 0.4.0 12 Apr 2014
    Release notes
    • Made fields on TreeEntry final.
    • A lot of source clean up.
    Open source →
  26. 0.3.0 18 Mar 2014
    Release notes
    • BREAKING PopulateTempDir typedef.
    • BREAKING GitDir.populateBranch - moving away from TempDir from bot_io
    • Removed a number of package dependencies
    Open source →
  27. 0.3.0+1 11 Apr 2014

    Nothing published for this version

  28. 0.2.1 16 Mar 2014
    Release notes
    • Deprecated PopulateTempDir typedef.
    • Deprecated GitDir.populateBranch - moving away from TempDir from bot_io
    • NEW! GitDir.updateBranch like populateBranch, but exposes a Directory
    Open source →
  29. 0.2.1+1 16 Mar 2014
    Release notes
    • Moved scheduled_test dependency to dev_dependencies
    Open source →
  30. 0.2.0 05 Mar 2014
    Release notes
    • Supporting next release of bot_io
    • Fixed hop_runner
    • Removed deprecated Git class.
    Open source →
  31. 0.1.0 15 Feb 2014
    Release notes
    • First release
    • Maintains 100% compatibility with the bot_git library from the bot_io package as of release 0.25.1+2.
    Open source →
  32. 0.1.0-dev 15 Feb 2014 pre-release

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive