About Resetting Local Changes

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

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

Tips and Tricks Development Git