Packages

simple-git

4.1.0 · 16 Nov 2026MIT15.5M / weekRepositorynpmAtom feed

Your version

278 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.

  1. 3.x
  2. 3.1.1

    26 Jan 2022
    • Specify repository with directory identifier to be discoverable within monorepo

  3. 3.1.0

    23 Jan 2022
    • Optionally include ignored files in StatusResult (70e6767), closes #718

  4. 3.0.4

    23 Jan 2022
  5. 3.0.3

    20 Jan 2022
    • Allow branches without labels

    • Implement v3 deprecations

    • Publish v3 as latest

  6. 3.0.2

    18 Jan 2022
    • Backward compatibility - permit loading simple-git/promise with deprecation notice until mid-2022.

  7. 3.0.1

    18 Jan 2022
    • Documentation update

  8. 2.x
  9. 2.48.0

    1 Dec 2021
    • StatusResult returned by git.status() should include detached state of the working copy.

    • Add example for empty commit message in git.commit()

  10. 2.47.1

    29 Nov 2021

    Maintenance only: docs, tests, build or refactoring. Nothing changes in how you use it.

  11. 2.47.0

    19 Oct 2021
    • git-grep

  12. 2.46.0

    29 Sep 2021
    • completion plugin

    • completion plugin to allow configuring when simple-git determines the git tasks to be complete.

  13. 2.45.1

    4 Sep 2021
    • Support progress events in locales other than western european character sets.

  14. 2.45.0

    27 Aug 2021
    • Use author email field that respects mailmap

    • getConfig always returns null despite values being present in configuration

  15. 2.44.0

    14 Aug 2021
    • Add support for getting the current value of a git configuration setting based on its name.

  16. 2.43.0

    13 Aug 2021
    • Task callback types defined as single function type

  17. 2.42.0

    31 Jul 2021
    • Move log task to separate task builder

    • Support scope argument in listConfig to return a specific scope's configuration

  18. 2.41.2

    29 Jul 2021
    • Use literal true and false in DiffResultTextFile | DiffResultBinaryFile to aid type assertions.

  19. 2.41.1

    11 Jul 2021
    • Commit parsing should cater for file names with square brackets

  20. 2.41.0

    11 Jul 2021
    • Allow setting the scope of git config add to work on the local, global or system configuration.

    • Allow setting the scope of git config add to work on the local, global or system configuration.

  21. 2.40.0

    14 Jun 2021
    • Create the spawnOptions plugin to allow setting uid / gid owner for the spawned git child processes.

  22. 2.39.1

    9 Jun 2021
    • Add types and tests for the documented .exec api

    • Add types and tests for the documented .exec api

    • Updates the documentation for mergeFromTo to more closely represent its functionality (see #50 for the original requirement).

  23. 2.39.0

    13 May 2021
    • git.cwd can now be configured to affect just the chain rather than root instance.

  24. 2.38.1

    10 May 2021
    • Export GitPluginError from the main package. (2aa7e55), closes #616

  25. 2.38.0

    14 Apr 2021
    • Support enabling / disabling debug logs programmatically.

  26. 2.37.0

    15 Mar 2021
    • errorDetectionPlugin to handle creating error messages when tasks fail.

  27. 2.36.2

    11 Mar 2021
    • Export missing SimpleGitProgressEvent (038870e), closes #601

  28. 2.36.1

    7 Mar 2021
    • Documentation update for outputHandler

    • Support parsing git.branch where branches have carriage returns in the commit detail.

  29. 2.36.0

    3 Mar 2021
    • Timeout Plugin

    • Fix broken link in no-response auto-generated comment

  30. 2.35.2

    23 Feb 2021
    • Deprecated

      While use of the ListLogSummary type is deprecated in favour of the new LogResult, the alias type should also support the default generic DefaultLogFields to allow downstream consumers to upgrade to newer 2.x versions without the need to specify a generic. (508e602), closes #586

    • Progress plugin should request progress events for fetch as well as other common long running tasks.

  31. 2.35.1

    19 Feb 2021
    • Update documentation for configuring SimpleGit - options should be a Partial<SimpleGitOptions> to allow for supplying just some of its properties. (30523df), closes #580

  32. 2.35.0

    16 Feb 2021
    • Progress Handler

  33. 2.34.2

    7 Feb 2021
    • Fix npm publish token definition

  34. 2.32.0

    4 Feb 2021
    • Supports passing configuration arguments to the git binary (via its -c argument as a prefix to any other arguments). Eg: to supply some custom http proxy to a git pull command, use simpleGit('/some/path', { config: ['http.proxy=someproxy'] }).pull()

    • Add deprecation notice to git.silent

    • Internal Updates:

  35. 2.31.0

    17 Dec 2020
    • Adds a root: boolean property to the CommitResult interface representing whether the commit was a 'root' commit (which is a commit that has no parent, most commonly the first commit in a repo).

  36. 2.30.0

    16 Dec 2020
    • Reinstates native support for node.js v10 by removing use of ES6 constructs

  37. 2.29.0

    15 Dec 2020
    • Update type definition for git.mergeFromTo to be the MergeResult returned when using the more generic git.merge method.

  38. 2.28.0

    15 Dec 2020
    • Adds support for git.applyPatch to apply patches generated in a git diff to the working index, TypeScript consumers can make use of the ApplyOptions type definition to make use of strong types for the supported options. Thanks to @andreterron for the pull request.

  39. 2.27.0

    11 Dec 2020
    • Update the git.status parser to account for staged deleted/modified files and staged files with subsequent modifications meaning a status of:

  40. 2.26.0

    9 Dec 2020
    • Deprecated

      Resolves an issue whereby using git.log with a callback (or awaiting the promise created from the now deprecated simple-git/promise import) would fail to return the response to the caller.

  41. 2.25.0

    8 Dec 2020
    • When using git.commit, the first argument must be a string or array of strings. Passing another data type has long been considered an error, but now a deprecation warning will be shown in the log and will be switched to an error in version 3.

    • Fixes an issue in git.commit whereby a commit that included only deleted lines would be parsed as though the deletions were inclusions.

  42. 2.24.0

    27 Nov 2020
    • pull, push and pushTags parameter types updated to match new functionality and tests switched to TypeScript to ensure they are kept in sync

  43. 2.23.0

    20 Nov 2020
    • Deprecated

      Upgrade debug dependency and remove use of now deprecated debug().destroy()

    • Renames the default source branch from master to main

  44. 2.22.0

    13 Nov 2020
    • Adds support for git hash-object FILE and git hash-object -w FILE with new interface git.hashObject(...), with thanks to @MiOnim

  45. 2.21.0

    7 Oct 2020
    • Adds string to the set of types supported as options for git.log

  46. 2.20.1

    24 Aug 2020
    • LogOptions should be intersection rather than union types

  47. 2.20.0

    24 Aug 2020
  48. 2.19.0

    21 Aug 2020
    • Move the command/task option processing function to TypeScript

  49. 2.18.0

    19 Aug 2020
    • git.clone and git.mirror rewritten to fit the TypeScript tasks style.

    • Resolves issue whereby git.clone didn't accept an object of options despite being documented as supporting.

  50. 2.17.0

    3 Aug 2020
    • git pull (and by extension git merge) adds remote message parsing to the PullResult type

    • Remote message parsing adds property remoteMessages.objects of type RemoteMessagesObjectEnumeration to capture the objects transferred in fetch and push.

  51. 2.16.0

    2 Aug 2020
    • git.mv rewritten to fit the TypeScript tasks style.

    • Set up github actions for CI

  52. 2.15.0

    23 Jul 2020
    • Deprecated

      Renames some interfaces for consistency of naming, the original name remains as a type alias marked as @deprecated until version 3.x:

    • Adds the TaskParser type to describe a task's parser function and creates the LineParser utility to simplify line-by-line parsing of string responses.

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.