I am asumming that you have following this already taken care in your dev machine
- Fully configured up and running Ghost blog
- Successfully installed Buster Script
- Already have Git Page for your account
Follow the steps below
- Go to your
Ghost Blog
root directory
cd /path/to/ghost/blog/root
- Clone your
<your-username>.github.io
repository instatic
directory under Ghost root directory. You can easily do it with the following command
git clone <your-repo-url> static
- Go to your ghost blog root directory if you are in
static
directory. - Grab the
ghost2git
script running the following command and save it in your Ghost blog root directory
curl -fsOSL https://gist.githubusercontent.com/nmrony/77147308e38776031412/raw/ghost2git
- Open
ghost2git
in your favourite editor. Then find and replace the<your-github-username>
with your github username. Save it. - Make it executable using the following command
chmod +x ghost2git
- Run the script on your terminal using the following command when you add a blog post in your Ghost blog and want to push it to Gitpage
./ghost2git