Skip to main content

A handy tool to modify git history

Project description

Gitools

PyPI MIT License PR's Welcome GitHub Repo stars PyPI - Downloads

A handy tool to modify git history

Requirement

  • Python 3

  • Knowing following rule:

    • Do not change a shared history

Quick Start

You need to install python to use this app, so you can simply download python from Official Site

Now you should install Gitools as global app:

$ pip install -U Gitools
or
$ python -m pip install -U Gitools

Use -U option to update Gitools to the last version

:warning: Do not change a shared history

Usage

$ gitools

$ gitools -c [commit_count]

Example:

$ gitools -c 100

$ gitools -ch ca895a914fc551f50301b83311c803846454bc21

For more details:

$ gitools -h
usage: gitools [-h] [-c COUNT] [-an AUTHOR_NAME] [-ae AUTHOR_EMAIL] [-cd COMMIT_DATE]
                     [-ch COMMIT_HASH] [-cm COMMIT_MESSAGE] [-m MODE] [-i INPUT]

optional arguments:
  -h        --help                 show this help message and exit
  -c        --count                number of commit to show
  -cm       --commit-message       commit message
  -ae       --author-email         author email
  -an       --author-name          author name
  -cd       --commit-date          commit date
  -ch       --commit-hash          commit hash
  -i        --input                git directory
  -m        --module               select module to do something

Features

  • Modify Commit Author
  • Modify Commit Message
  • Modify Commit Date Time

Contributions

This project is based on git filter-branch. As indygreg calls it "the swiss-army knife of Git history rewriting".

If you're interested in contributing to this project, first of all I would like to extend my heartfelt gratitude.

Please feel free to reach out to me if you need help. My Email: AliRezaBeigyKhu@gmail.com Telegram: @AliRezaBeigy

LICENSE

MIT

Project details


Download files

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

Source Distribution

Gitools-1.5.1.tar.gz (8.4 kB view hashes)

Uploaded Source

Built Distribution

Gitools-1.5.1-py3-none-any.whl (13.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page