Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Atrion/413317d98dcd0669cb91fb671ba03654 to your computer and use it in GitHub Desktop.
Save Atrion/413317d98dcd0669cb91fb671ba03654 to your computer and use it in GitHub Desktop.
Pull New Theme
git checkout --orphan newtheme
git rm -rf .
git clean -dfx
git remote add upstream https://github.com/johnotander/pixyll.git
git fetch upstream
git pull upstream master
bundler install
jekyll serve
Merge Changes
git checkout master -- _posts
git show master:_config.yml > _config.yml.old
git checkout upstream/master -- about.md
Replace the master branch
git checkout newtheme
git merge -s ours master
git checkout master
git merge newtheme
git push
git branch -d newtheme
Updating the theme
git pull upstream master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment