$ git restore .
This change is irreversible so be sure before restoring previous local version.
Local: $ git branch -d branch_name
or $ git branch -D branch_name
Remote: $ git push -d <remote_name> <branch_name>
eg: $ git push -d origin <branch_name>
$ git branch -r
$ git fetch <remote_name> <remote_branch>:<local_branch>
$ git checkout <local_branch>
$ git remote set-url origin <repo link>
$ git remote add upstream <repo name>
$ git fetch upstream pull/<pull request no>/head:<local branch name>