Skip to content

Latest commit

 

History

History
47 lines (33 loc) · 715 Bytes

File metadata and controls

47 lines (33 loc) · 715 Bytes

How to update the base template to the latest master

Setup

git remote add template https://github.com/obsproject/obs-plugintemplate.git

Updating

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