Skip to content

angstwad/git-rollback-branch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

git-rollback-branch

Reverts commits in a Git branch from HEAD to an arbitrary tag.

Requirements

  • Python 3.5+
  • gitpython

Installation

  1. Clone the repo
  2. cd git-rollback-branch
  3. pip3 install .

Use

$ 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

Disclaimer

This is not an officially supported Google product.

About

Proof-of-concept script demonstrating rollback of a git branch for use in CI/CD pipelines

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages