Need help with local Jekyll

In the following, you will see that I am a git newbie who doesn’t know what he’s doing. Sorry for any overly naive questions.

I have a few Github pages already. So far, I have managed them directly on the web site, but would like to try managing them locally and using Jekyll. 

When I follow, I reach a roadblock in step 3, “generate Jekyll site files”. 

What am I supposed to do between steps 3-6, “connect your remote repository”, and 3-7, “edit the Jekyll template site”? I tried git fetch, which succeeded. How do I now get my files into the working tree? git checkout master complains that it would overwrite .gitignore and _config.yml. git merge origin/master complains that it would overwrite .gitignore. Any suggestions what I should do, or what I should read to continue the process?

This is on Fedora 23, by the way.

Since I think the referenced help page has room for improvement, I would like to comment on it. See also

Since you started out with your Pages site on GitHub, did you clone your GitHub repository locally using the git clone command? (The instructions you reference are for starting a brand new Pages site locally, so they’re not really designed for your situation.) When you clone your GitHub repository locally, then it should be all up to date and you don’t need to checkout master or fetch or anything. You can go straight to installing Jekyll and generating the site files.


Thanks, this is probably the answer I am looking for. Note, though, that the referenced page doesn’t say that the instructions are for brandnew sites only. It starts as follows:

You can set up a local version of your Jekyll GitHub Pages site to test changes to your site locally. We highly recommend installing Jekyll to preview your site and help troubleshoot failed Jekyll builds.

and later:

You may already have Jekyll site files on your local computer if you cloned a Jekyll site repository

Meanwhile, I fixed my problem by creating a new site and copying my files into it.

1 Like