Skip to content

Watch script to automatically push updates to GitHub

License

Notifications You must be signed in to change notification settings

jmakGH/node-git-watch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-git-watch

This is a CLI tool that watches for changes in a repo to automatically commit and push up to your git remote repository.

How to use

You can clone this repo and run npm link inside of the repo.

From there, you can call node-git-watch from the repo you wish to watch, using the following argument options to tailor the script.

Arguments

-t [number=60000]

The amount of time between intervals when the script will check for changes. If using this flag, the value you pass in should be in milliseconds. It defaults to 10 minutes.

-f [string="y-MM-dd HH:mm:ss"]

The format that the commit timestamp will take after. The format must be readable by date-fns. The default value and commit message looks like this.

Commit (2021-02-28 18:02:01)

About

Watch script to automatically push updates to GitHub

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published