The simplest tool for deferred commits
git clone https://github.com/thenesterov/elgit.git
or
wget https://github.com/thenesterov/elgit/raw/master/elgit.py
Then make it executable:
chmod +x elgit.py
To print help, use the -h
or --help
flag:
./elgit.py -h
To commit right now:
git add .
./elgit.py -m "Commit message"
To commit later, you can use the following flags:
--minutes
--absminutes
--hours
--abshours
--days
--absdays
--months
--absmonths
--randtime
Commit in N (e.g. 3) minutes/hours/days/months:
./elgit.py -m "Elgit commit" --minutes 3
./elgit.py -m "Elgit commit" --hours 3
./elgit.py -m "Elgit commit" --days 3
./elgit.py -m "Elgit commit" --months 3
Commit to a specific (absolute) value of minutes/hours/days/months:
./elgit.py -m "Elgit commit" --absminutes 3
./elgit.py -m "Elgit commit" --abshours 3
./elgit.py -m "Elgit commit" --absdays 3
./elgit.py -m "Elgit commit" --absmonths 3
You can combine flags:
./elgit.py -m "Elgit commit" --hours 1 --absminutes 30
You can also specify a random time value:
./elgit.py -m "Elgit commit" --days 1 --randtime