Since Alex recently updated Notablog to 0.4.2 to reflect Notion's API changes, I'm making this post to remind myself in the future how to set up the Git workflow for a different computer.
Updating git-scm, nodejs/npm, Notablog and notablog-starter
- git-scm: Just download the .msi from https://git-scm.com
- Updating npm:
npm cache clean -f
npm install -g npm
- Notablog:
npm i -g notablog
- Notablog-starter
git clone
git@github.com
:aptrinh/notablog-starter.git
IF git isn't set up correctly
- Edit config.json and dupe table URL
- Go straight to /public folder after generating and open git-bash
git init
git config --global user.name "USERNAME"
git config --global user.email "email@email.com"
- If there's no SSH key set up
ssh-keygen -o
cat ~/.ssh/id_rsa.pub
- Copy result to Github's settings for SSH keys
Setting up Git workflow to match master branch
- Navigate to /public if not already in there
git remote add origin git@github.com:aptrinh/aptrinh.github.io.git
git pull origin master
- Generate changes from new Notablog:
notablog generate .
- Back to git to push changes
git status
git add .
git commit -m "MESSAGE"
git push