Skip to main content

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.

Installation

From PyPI using pip package manager:

pip install --upgrade git-ctm

Or install the latest sources from GitHub:

pip install https://github.com/pavdmyt/git-ctm/archive/master.zip

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

$ git clone https://github.com/pavdmyt/git-ctm.git
$ cd git-ctm
$ sudo cp ctm /usr/local/bin/

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

ctm --version

Usage

$ 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

Development

Clone the repository:

git clone https://github.com/pavdmyt/git-ctm.git

Install dependencies:

make install-dev

Lint code:

make lint

Contributing

  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

License

MIT - Pavlo Dmytrenko

Download files

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

Source Distribution

git-ctm-0.2.0.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

git_ctm-0.2.0-py2.py3-none-any.whl (5.4 kB view details)

Uploaded Python 2Python 3

File details

Details for the file git-ctm-0.2.0.tar.gz.

File metadata

  • Download URL: git-ctm-0.2.0.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for git-ctm-0.2.0.tar.gz
Algorithm Hash digest
SHA256 0651d02ef48d6be087c1b1e8fb8a9df81228a8db7976c4c1fe170e02b603c7bc
MD5 96924641521fc704d5617f16a85c8477
BLAKE2b-256 69515c59dd380c748c5532c450218395220fa59f47cfbc3e5e1402d4cc694623

See more details on using hashes here.

File details

Details for the file git_ctm-0.2.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for git_ctm-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0aeaa50394baa982db1aebb360bcd6dd12071fe9272d65b7801c8d14bf09fb25
MD5 70411560f094a73ed2626533f02c8a1c
BLAKE2b-256 5b10389ef8ac49453ad2a8895e57b5828d34389c9657776b56c5efec0533774d

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page