TOOL » GIT

Restore

Usage

Note: Command added in Git 2.23.

Restore files in the working tree from either the index or another commit. This command does not generate any commits.

shell
git restore OPTIONS FILES
OptionDescription
-s --sourceThe commit/branch that should be used as source.