Skip to content

arielivandiaz/auto-commit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Auto Commit/Push

Make a git commit with a simple command and control the repository version.

Laguna

Files

The version number will be taken and updated from:

version/version.json package.json

Run

Version syntax : 00.11.22 = [mayor version].[version].[revision]

Update revision

 sh autocommit.sh

Update version

 sh autocommit.sh v

Update mayor version

 sh autocommit.sh mv

Steps

  1. Use node to open the version.json file and update the revision.
  2. See the status of the repository.
  3. Add all files to the repository.
  4. Make a commit by passing the version.revision number as a message.
  5. Push the files to the remote repository in the master branch.

Requeriments

  • Node CLI
  • JQ

Install JQ

Install JQ on Windows with Choco

 choco install jq

Install JQ on Linux/Ubuntu

 sudo apt-get install jq

Autor Ariel Ivan Diaz

About

Commit and push to a repository with just one command.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published