Reset the local branch to the last state of the corresponding remote branch.
$ git reset --hard originIn order to stay in sync with a GitHub repository template, add the template repository as a remote:
$ git remote add template {git@github.com:{repoName}.git}
$ git remote updateMerge branches from the template into your repository:
$ git fetch
$ git merge --allow-unrelated-histories template/masterAlternatively, check out specific files from the template:
$ git fetch
$ git checkout template/master -- path/to/file