use vim to revert multiple commits
sh -c "$(curl -fsSL https://raw.githubusercontent.com/andreashimin/git-multi-revert/master/tools/install.sh)"
- On-My-Zsh
echo "alias git-multi-revert=\"sh ~/.git-multi-revert/scripts/multi-revert.sh\"" >> ~/.zshrc
- Bash
echo "alias git-multi-revert=\"sh ~/.git-multi-revert/scripts/multi-revert.sh\"" >> ~/.bashrc
🚗🚗🚗 Then, you‘re good to go! 🤗
- Will return the latest commit logs untill your select commit
git-multi-revert ${commit SHA-1}
or
sh ~/.git-multi-revert/scripts/multi-revert.sh ${commit SHA-1}
- Give a range of commits(from latest...oldest) to Git-Multi-Revert
git-multi-revert ${commit SHA-1}...${commit SHA-1}
- You can set a flag
--auto, -a
for Git-Multi-Revert automatic revert your commits
git-multi-revert ${commit SHA-1} --auto
vi ~/.git-multi-revertrc
ENABLE_WORD="feature-toggle(enable)"
DISABLE_WORD="feature-toggle(disable)"
sh -c "$(curl -fsSL https://raw.githubusercontent.com/andreashimin/git-multi-revert/master/tools/uninstall.sh)"