DEV Community

Discussion on: GIT - Unorthodox commands I use from time to time

Collapse
 
kaddkaka profile image
kaddkaka

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.

Collapse
 
sm0ke profile image
Sm0ke

Noted, Ty!