Reverts commits in a Git branch from HEAD to an arbitrary tag.
- Python 3.5+
- gitpython
- Clone the repo
cd git-rollback-branch
pip3 install .
$ rollback_git --help
usage: rollback_git [-h] [-b BRANCH] [-t TAG]
Reverts commits in a git branch from HEAD to an arbitrary tag
optional arguments:
-h, --help show this help message and exit
-b BRANCH, --branch BRANCH
Branch on which to add reverts. Default: master
-t TAG, --tag TAG Tag at which to stop reverting. Default: prod
This is not an officially supported Google product.