Skip to main content

Git commit time machine.

Project description

git-ctm = git commit Time Machine

Sometimes you need to create a commit with particular timestamp. git-ctm provides a command-line tool ctm for easy committing with desired timestamp:

$ ctm -d 'Thu Feb 8 03:14:15 2018 +0200' -m 'my commit message'

# is the same as
$ GIT_AUTHOR_DATE='Thu Feb 8 03:14:15 2018 +0200'    \
  GIT_COMMITTER_DATE='Thu Feb 8 03:14:15 2018 +0200' \
  git commit -m 'my commit message'

All commits in this project are done with ctm itself.


From PyPI using pip package manager:

pip install --upgrade git-ctm

Or install the latest sources from GitHub:

pip install

Or just put ctm PEX (Python EXecutable) file somewhere in the $PATH:

$ git clone
$ cd git-ctm
$ sudo cp ctm /usr/local/bin/

Now ctm command-line tool should be available to use, try:

ctm --version


$ ctm --help
Usage:  ctm -d <date> -m <msg>
        ctm -p

  -d <date>      Commit date and time
  -m <msg>       Commit message
  -p             Print date template

  --help         Print usage
  --version      Print version


Clone the repository:

git clone

Install dependencies:

make install-dev

Lint code:

make lint


  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -m 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request
  6. Make sure tests are passing


MIT - Pavlo Dmytrenko

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for git-ctm, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size git_ctm-0.2.0-py2.py3-none-any.whl (5.4 kB) File type Wheel Python version 3.6 Upload date Hashes View
Filename, size git-ctm-0.2.0.tar.gz (4.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page