About Resetting Local Changes

To update the code from remote Git repository while ignoring local changes, do this:

$ git fetch --all
$ git reset --hard origin/main

Tips and Tricks Development Git