Skip to content

This project is for edu purpose to work with node cli and executing commands using child processes

License

Notifications You must be signed in to change notification settings

shikhar13012001/node-cli-fcommit

Repository files navigation

fcommit

A basic cli tool for git commit and push. Note this project is educational purpose to learn how cli tools work.

npm downloads stars

Installation

install the package globally:

$ npm install fcommit -g

Note: fcommit auto committer needs .gitignore file.

Dependencies

fcommit written in node.js. Node depends on JavaScript on a VM that is incredibly fast (V8). It is much faster than Ruby, Python, or Perl. That's the reason you have to install node. Download node.js

Usage

use the following command to get help:

    $ fcommit --help

help

A basic commit command:

  • fcommit - commit all changes
  • git add . is not necessary
$ fcommit -m "message"
  • fcommit -p - push all changes
  • fcommit -p -f - force push all changes
  • -u - upstream
$ fcommit -p -f
  • fcommit -p -f -m "message" - force push all changes with message

example chaining: this will commit all changes and push all changes upstream in branch main

$ fcommit -m "message" -p -u -b main

Note: if the branch is not passed ( -b <your branch> ) then the current branch will be used.

  • pretty git log format
    $ fcommit --log
    $ fcommit -l
    logs

About

This project is for edu purpose to work with node cli and executing commands using child processes

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published