No description, website, or topics provided.
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
node_modules
index.js
package.json
readme.md

readme.md

node-git

Library that spawns git commads through the cli and parses the responses. You should probably use something like gitteh instead, but I couldn't get that to work, so...

Usage

Usage is very similar to the cli git command:

git.clone( 'https://path/to/some/repo.git', '/path/to/clone/to', function( err, repo ){
	
});
git.add( [ 'file1.js', 'file2.css', 'file3.html' ], function( err ){
	git.commit( 'Did something', function( err ){

	});
});

Commands

  • add( files, flags, callback( err ) )
  • checkout( branch, flags, callback( err ) )
  • clone( source, dest, callback( err, repo ) )
  • commit( msg, files, flags, callback( err ) )
  • fetch( flags, callback( err ) )
  • gc( flags, callback( err ) )
  • log( flags, callback( err, logs ) )
  • pull( flags, callback( err ) )
  • push( repo, branch, flags, callback( err ) )
  • rebase( flags, callback( err ) )
  • status( callback( statuses ) )
  • tag( tag, options, flags, callback( err, tag info ) )