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

Urldecode string (LUA)
FFMPEG Convert YUV444p to YUV420p (BASH)
Forcing FFMPEG to honour segment length in HLS Stream Creator (BASH)
Force CURL to place request to a specific IP (BASH)
Set a variable only if it is undefined (Javascript)
Ignore query string with Nginx caching proxy (NGinx)
Get breakdown of UK and non-UK votes for a Parliamentary Petition (Python)
Decompress Mozilla Firefox jsonlz4 bookmark backup files (Python)
Setting Git author details for a single repo (Git)
Checking Virtual Machine Resource Allocations with Libvirt (BASH)

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