The git revert
command is used to create a new commit that undoes the changes made by a previous commit. Unlike git reset
, which alters the commit history, git revert
preserves the commit history and is often used in shared repositories to undo changes safely.
Tags: basic, git, revert, version control
URL: https://www.tiktok.com/@jsmentoring/photo/7444867368431439136