GithubHelp home page GithubHelp logo

armaan-indani / regit Goto Github PK

View Code? Open in Web Editor NEW

This project forked from woaitsaryan/regit

0.0 0.0 0.0 104 KB

regit is a CLI tool written in Golang to rewrite Git histories

License: MIT License

Go 99.16% Makefile 0.84%

regit's Introduction


Logo

Regit

CLI tool to manage git repositories and histories

Installation · Docs · Request Features · Report Bug

Regit is a CLI tool written in Go that allows you to rewrite git histories. Changing ownership, timestamps, even commit messages to follow conventions, all in a single command

Warning

Using regit multiple times might cause object corruption in your git repository. Please use it after backup up your .git folder.

Installation

Windows

python3 -m pip install --user git-filter-repo
winget install regit

macOS

git clone https://github.com/woaitsAryan/regit && cd regit
make setup

Linux

git clone https://github.com/woaitsAryan/regit && cd regit
make setup

Docs

Regit currently supports 5 commands:

  1. regit recommit: Reads all the commit diffs and writes better commit messages, then commits them again.
  2. regit own: Makes you the author of all the commits.
  3. regit blame <name> <email>: Makes the user specified by <name> and <email> the author of all the commits.
  4. regit nuke /path/to/file: Removes the file specified from all the commits in the repository.
  5. regit retime <duration>: Rewrites the commit times of all the commits in the repository to be of x hours in the past, evenly spaced. Can be any number of hours.

--path flag can be used to specify the path of the repository. If not specified, the current directory is used.

Credits

Regit uses git-filter-repo under the hood to rewrite git histories. I would like to thank the authors and contributors of git-filter-repo for their work.

regit's People

Contributors

woaitsaryan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.