Just my blogging workflow.

  1. Configure git
    git config --global user.name "Murpholinox Peligro"
    git config --global user.email "murpholinox@gmail.com"
    git config --global core.editor vim
    
  2. Clone blog repository
    cd
    mkdir Repos
    # Old way to clone a repo
    git clone https://github.com/murpholinox/murpholinox.github.io.git blog
    # New way to clone a repo, with SSH
    git clone git@github.com:murpholinox/murpholinox.github.io.git blog
    

Update: new way is more secure, but you have to generate your SSH keys and add them to GitHub. You can find the instructions here.

  1. Write post in md format
    cd blog/
    vim _posts/YYYY-MM-DD-title.md
    
  2. Exit vim, then
    git add .
    git commit -m 'Usefulcomment'
    git push
    

    Will ask for user id and password if cloning with the old way or passphrase if cloning with the new way.

If we edit something within GitHub then at our local repository we need to do git pull.