git restore is the new command to restore files and it replaces both reset and checkout in some cases.
git restore <filepath> --source=<source>
Using push with --force will not warn or stop you if someone else has changed the upstream. Use push --force-with-lease instead to avoid losing other's committs.
git restore
is the new command to restore files and it replaces both reset and checkout in some cases.git restore <filepath> --source=<source>
Using push with --force will not warn or stop you if someone else has changed the upstream. Use push
--force-with-lease
instead to avoid losing other's committs.Noted, Ty!