git remote add template https://github.com/obsproject/obs-plugintemplate.git
Ensure a clean working tree
git reset --hard
Pull the latest template data.
git fetch --all -p
git checkout template/master --pathspec-from-file pathspec
Check which files have changed,
git status --verbose
restore files that should stay,
git restore --worktree --staged src
git restore -WS buildspec.json
git restore -WS CMakeLists.txt
and then commit.
git commit
Remeber to write down the commit hash that you're updating to!
git log -1 template/master