lz-git
v1.3.4
Published
A simple utility for lazy git commits and pushes.
Downloads
5
Readme
lazy-git
A simple utility for lazy git commits and pushes.
Installation
You can install lz-git
via npm:
npm install lz-git
Usage
const lg = require('lz-git');
// or
const lz = require('lz-git');
// or
const lzgit = require('lz-git');
// Basic usage
lg();
// With custom commit message
lg('Added new feature');
// With custom branch and remote
lg('Fixed a bug', { b: 'main', r: 'origin' });
Options message: The commit message. Default is 'Initial commit'. options: An object containing additional options: b: The branch to push to. Default is 'main'. r: The remote repository to push to. Default is 'origin'. API lazyGit(message, options) Commits and pushes changes to a git repository.
message: (Optional) The commit message. Default is 'Initial commit'. options: (Optional) An object containing additional options: b: (Optional) The branch to push to. Default is 'main'. r: (Optional) The remote repository to push to. Default is 'origin'. Returns: undefined