
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
A specialised child process spawn for git commands
Compatible with Node.js 8.x
Note: while there's nothing currently preventing this from being used to execute arbitrary bash commands, be warned that it's use is focused on git and the API may evolve to be more specific into the future. You're welcome to fork or copy the patterns used if you need similar functionality for other uses.
gitexec.exec(repoPath, gitCommand)Execute gitCommand in a newly spawned Bash shell.
Returns a Stream with stdout. Any non-zero exit code will cause an 'error' event on the stream.
Stderr is printed to directly stderr.
gitexec.execCollect(repoPath, gitCommand, callback)A form of exec() that collects stdout and returns it as a single String on the callback. Any errors encountered will be given as the first argument to the callback.
gitexec is Copyright (c) 2015 Rod Vagg @rvagg and licenced under the MIT licence. All rights not explicitly granted in the MIT license are reserved. See the included LICENSE.md file for more details.
FAQs
A specialised child process spawn for `git` commands
The npm package gitexec receives a total of 2,085 weekly downloads. As such, gitexec popularity was classified as popular.
We found that gitexec demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.