git-auto icon indicating copy to clipboard operation
git-auto copied to clipboard

Git workflow automation

git-auto

Tiny script to automate your git workflow

Installation

$ npm install -g git-auto

Features

  • One command for your git workflow
  • Automatically adds files to the staging area and generates commits
  • Chooses clean and consistent messages (e.g. 'added index.js')

Usage

Usage: git auto [options]

Options:

  -h, --help     output usage information
  -V, --version  output the version number
  -p, --push     Push to remote repository after generating commits
  -g, --group    Group changes into a single commit

Running $ git auto inside a folder will do the following:

  • If the folder not a git repository, initialize it as one.
  • For each file in the repository, add the file to the staging area and generate a commit message.
  • Adding the -p option will push to origin master at the end.

Note

It is an unbelievably horrible idea to use this script if anyone else is going to look through your commit history.

License

MIT