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. 2.x
  2. 2.14.0

    20 Jul 2020
    • Resolves an issue whereby the git.checkoutBranch method would not pass the branch detail through to the underlying child process.

  3. 2.13.2

    17 Jul 2020
    • Further to 2.13.0 includes all (non-empty) remote: lines in the PushResult, including remote: lines used for other parser results (ie: pullRequestUrl etc).

  4. 2.13.1

    16 Jul 2020
    • Further to 2.13.0 adding support for parsing the reponse to git.push, adds support for the pull request message used by gitlab.

  5. 2.13.0

    16 Jul 2020
    • .push and .pushTags rewritten as v2 style tasks. The git response is now parsed and returned as a PushResult

    • Pull and merge rewritten to fit the TypeScript tasks style.

  6. 2.12.0

    8 Jul 2020
    • Resolves an issue whereby the git.tags method could not be chained or used as an async/promise.

  7. 2.11.0

    25 Jun 2020
    • Until now, simple-git reject all pending tasks in the queue when a task has failed. From 2.11.0, only tasks chained from the failing one will be rejected, other tasks can continue to be processed as normal, giving the developer more control over which tasks should be treated as atomic chains, and which can be run in parallel.

      To support this, and to prevent the issues seen when git is run concurrently in too many child processes, simple-git will limit the number of tasks running in parallel at any one time to be at most 1 from each chain (ie: chained tasks are still run in series) and at most 5 tasks across all chains ( configurable by passing {maxConcurrentProcesses: x} in the simpleGit constructor).

    • Add support to git.status() for parsing the response of a repo that has no commits yet, previously it wouldn't determine the branch name correctly.

    • Resolved a flaw introduced in 2.9.0 whereby checkoutLocalBranch would silently fail and not check out the branch

  8. 2.10.0

    23 Jun 2020
    • git.checkout now supports both object and array forms of supplying trailing options.

    • git.init now supports both object and array forms of supplying trailing options and now parses the response to return an InitResult;

    • git.status now supports both object and array forms of supplying trailing options.

  9. 2.9.0

    20 Jun 2020
    • .checkIsRepo() updated to allow choosing the type of check to run, either by using the exported CheckRepoActions enum or the text equivalents ('bare', 'root' or 'tree'):

    • .revparse() converted to a new style task

  10. 2.8.0

    19 Jun 2020
    • Enables support for using the default export of simple-git as an es module, in TypeScript it is no longer necessary to enable the esModuleInterop flag in the tsconfig.json to consume the default export.

  11. 2.7.2

    18 Jun 2020
    • Closes #471, whereby the source for the promise wrapped runner would be included in the published artifact due to sharing the same name as the explicitly included promise.js in the project root.

  12. 2.7.1

    18 Jun 2020

    Reading the note…

  13. 2.7.0

    16 Jun 2020
    • Updated to the outputHandler type to add a trailing argument for the arguments passed into the child process.

    • All logging now uses the debug library. Enable logging by adding simple-git to the DEBUG environment variable. git.silent(false) can still be used to explicitly enable logging and is equivalent to calling require('debug').enable('simple-git').

  14. 2.6.0

    7 Jun 2020
    • TL;DR - .then and .catch can now be called on the standard simpleGit chain to handle the promise returned by the most recently added task... essentially, promises now just work the way you would expect them to.

    • The main export from simple-git no longer shows the deprecation notice for using the .then function, it now exposes the promise chain generated from the most recently run task, allowing the combination of chain building and ad-hoc splitting off to a new promise chain.

    • Promise / async interface and TypeScript types all available from the simple-git import rather than needing simple-git/promise, see examples in the ReadMe or in the consumer tests.

  15. 2.5.0

    17 May 2020
    • All git.remote related functions converted to TypeScript

  16. 2.4.0

    5 May 2020
    • All git.subModule related functions converted to TypeScript

  17. 2.3.0

    3 May 2020
    • Add new git.listConfig to get current configuration

    • git.addConfig supports a new append flag to append the value into the config rather than overwrite existing

  18. 2.2.0

    30 Apr 2020
    • All git.branch related functions converted to TypeScript

    • Add new git.deleteLocalBranches to delete multiple branches in one call

    • git.deleteLocalBranches and git.deleteLocalBranch now support an optional forceDelete flag

  19. 2.1.0

    28 Apr 2020
    • .tags, .addTag and .addAnnotatedTag converted to TypeScript, no backward compatibility changes

  20. 2.0.0

    28 Apr 2020
    • If your application depended on any functions with a name starting with an _, the upgrade may not be seamless, please only use the documented public API.

    • git.log date format is now strict ISO by default (ie: uses the placeholder %aI) instead of the 1.x default of %ai for an "ISO-like" date format. To restore the old behaviour, add strictDate = false to the options passed to git.log.

  21. 1.x
  22. 1.113.0 – 1.132.020 releases without a noteShow each
  23. 1.112.0

    3 May 2019

    Reading the note…

  24. 1.111.0

    3 May 2019

    Reading the note…

  25. 1.110.0

    23 Mar 2019

    Reading the note…

  26. 1.109.0

    22 Mar 2019

    Reading the note…

  27. 1.108.0

    22 Mar 2019

    Reading the note…

  28. 1.107.0

    5 Nov 2018

    Reading the note…

  29. 1.106.0

    26 Oct 2018

    Reading the note…

  30. 1.105.0

    11 Oct 2018

    Reading the note…

  31. 1.104.0

    2 Oct 2018

    Reading the note…

  32. 1.103.0

    29 Sep 2018

    Reading the note…

  33. 1.102.0

    22 Sep 2018

    Reading the note…

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.