Bulk Reverting Commits

Published: 2018-04-11 13:59:44 +0000
Categories: Git,




Usually, you only want to revert a single commit at once. Just occasionally, though, you want to revert multiple commits all in one fell swoop (making it either a very sad or a very happy day).


git revert --no-commit [commit ref1]
git revert --no-commit [commit ref2]
git revert --no-commit [commit ref3]
git commit -m "Ripping out those rubbish changes"

Usage Example

git revert --no-commit c793d776
git revert --no-commit 81e71c8c
git revert --no-commit 8ca16d12
git revert --no-commit f698c756
git commit


revert, commit, batch, bulk,

Latest Posts

Remotely backing up PFsense Configuration (BASH)
FFMPEG: Converting RMVB to X264 MP4 (BASH)
Recursively print table (print_r equivalent) (LUA)
Bulk Delete Comments from (Self-Hosted) JIRA Issues (Misc)
Add a static entry to the ARP table (BASH)
SSL Cipher Hex codes to Human Readable Names (Misc)
Convert Ascii to Binary (BASH)
Intercepting Outbound DNS Queries (BASH)
Handle Google Verification files within NGinx Configuration (NGinx)
Getting WhatsApp Rich Snippet Previews Working (Misc)

Copyright © 2018 Ben Tasker | Sitemap | Privacy Policy
Available at snippets.bentasker.co.uk and snippets.6zdgh5a5e6zpchdz.onion