mirror of
https://github.com/mike-rambil/Advanced-Git.git
synced 2025-12-30 14:09:30 -06:00
444 B
444 B
git replace
Category
History
Temporarily substitute one commit for another.
Command
git replace abc123 def456
Examples
- Temporarily replace commit abc123 with def456.
git replace abc123 def456
Steps
- Run
git replace <old-commit> <new-commit>to test or patch history.
Tags
replace, history
Author
mike-rambil
Last Updated
2024-06-10