Reset the local branch to the last state of the corresponding remote branch.
$ git reset --hard origin
In order to stay in sync with a GitHub repository template, add the template repository as a remote:
$ git remote add template {[email protected]:{repoName}.git}
$ git remote update
Merge branches from the template into your repository:
$ git fetch
$ git merge --allow-unrelated-histories template/master
Alternatively, check out specific files from the template:
$ git fetch
$ git checkout template/master -- path/to/file