1.4.0 • Published 2 years ago
fcommit v1.4.0
fcommit
A basic cli tool for git commit and push. Note this project is educational purpose to learn how cli tools work.
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
A basic commit command:
fcommit
- commit all changesgit add .
is not necessary
$ fcommit -m "message"
fcommit -p
- push all changesfcommit -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