Description
isomorphic-git is a pure JavaScript implementation of git that runs in Node and in browsers, including web workers and service workers. Because it works in the browser, you can clone repositories, create commits, push branches and manage history from client-side code without installing git. It uses the same on-disk format as git, so it works with existing repositories, and it reads and writes the .git directory the same way the git command does. The library supports cloning, initializing repositories, listing branches and tags, reading commit history, checking out branches, pushing to remotes, creating commits, reading and writing git config and raw git objects, PGP signing, file status and merging branches. The authors say the aim is 100% interoperability with the canonical git implementation. Its API is built as individual functions, so bundlers such as Rollup and Webpack can include only the functions an application uses and produce smaller bundles. A command-line tool called isogit can work with repositories on a desktop or server. The site has a live example that fetches the branches and tags from a repository over the git HTTP protocol, along with an API reference, a guide and a project chat.…
Highlights
- Pure JavaScript git for Node and browsers
- Clone, commit, push and merge
- Same on-disk format as git
- Tree-shakeable function API
- isogit command-line tool
Ratings & Reviews
No ratings yet
Be the first to rate Isomorphic Git.
People also visit
Sourcehut
A full web git interface with no javascript. (Demo, Source Code) GPL-2.0 Go
Isomorphic Git FAQ
What is isomorphic-git?
A pure JavaScript implementation of git that works in Node and in browsers.
Can it work in the browser?
Yes. The README says it works in modern browsers, including web workers and service workers.
Does it work with existing repositories?
Yes. It uses the same on-disk format as git, so it works with existing repos.
Which git operations does it support?
Cloning, initializing, listing branches and tags, commit history, checkout, pushing, creating commits, merging, PGP signing and file status.
Does it need a native git install?
No. It is written in JavaScript, so no separate git binary is needed.
Is there a command-line version?
Yes. The isogit CLI works with repositories on your desktop or server.
What are the best Isomorphic Git alternatives?
Popular alternatives to Isomorphic Git include Go Git, PuppyGit and Sourcegit. See all Isomorphic Git alternatives




