function git() {
	var branch;
	var origin;
	var slug;
	var opts;
	var dir;
	var cmd;
	var out;
	var ext;

	// Get the local git repository path:
	dir = exec( 'git rev-parse --show-toplevel' );
	dir = trim( dir.toString() );
	dir = dir.match( /(.+)/ )[ 1 ];
	debug( 'Local repository directory: %s', dir );

	opts = {
		'cwd': dir
	};

	// Get the current branch:
	cmd = 'git rev-parse --abbrev-ref HEAD';
	out = exec( cmd, opts );
	branch = trim( out.toString() );
	debug( 'Branch: %s', branch );

	// Get the remote origin:
	cmd = 'git config --get remote.origin.url';
	out = exec( cmd, opts );
	origin = trim( out.toString() );
	ext = extname( origin ); // e.g., https://github.com/stdlib-js/stdlib.git
	if ( ext ) {
		origin = origin.slice( 0, origin.length-ext.length ); // e.g., https://github.com/stdlib-js/stdlib
	}
	debug( 'Remote origin: %s', origin );

	// Extract the repository slug:
	slug = origin.match( RE )[ 1 ];
	debug( 'Repository slug: %s', slug );

	out = {
		'dir': dir,
		'slug': slug,
		'origin': origin,
		'branch': branch
	};
	return out;
}
Returns git repository info.

@private
@returns {Object} repository info