A basic cli tool for git commit and push. Note this project is educational purpose to learn how cli tools work.
install the package globally:
$ npm install fcommit -g
Note:
fcommit
auto committer needs .gitignore file.
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
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.