For soft reset (revisions are preserved) Hard reset (if you DON’T need the changes anymore)
Git pull will download new changes from the branch named master on the remote named origin and integrates them into your local HEAD branch.
This should do it! You can also use “git log” to confirm!
Perform a “dry run” that will show you what files and directories will be deleted: Once you are sure to delete the untracked files and directories:
It is usually a good idea to pull changes from the upstream and keep the master update before creating a new branch: Create a new branch on your local machine and switch to the branch:
-d option is an alias for –delete