gitdate.js
After commit
and before push
, the last commit date is just a variable.
Installation
npm install -g gitdate
Usage
$ gitdate -h
Usage: gitdate [options] <date>
git commit date trick.
Options:
-h, --help output usage information
-V, --version output the version number
-m --minute <minutes> date offset +/-number of minutes
-H --hour <hours> date offset +/-number of hours
-d --day <days> date offset +/-number of days
-M --month <months> date offset +/-number of months
-y --year <years> date offset +/-number of years
--debug debug mode, such as print error tracks
Argument:
<date> two formats: '15:04' or 'now'
Example
$ gitdate 8:22
$ gitdate 13:45 -d -1
$ gitdate now
$ gitdate now -H -3 -m 5
$ gitdate now -M -1 -d -2 -H 3 -m 5
Related
WindomZ/gitdate - Written in Go
License
The MIT License