DIY Portfolio

less than 1 minute read

How I made this thing:

  1. This amaze youtube
  2. Iterate
  3. Mess up
  4. Iterate more
  5. Draw the rest of the owl

Resources:

  1. The Theme
  2. Markdown Cheatsheet
  3. Jekyllrb
  4. Man behind the video

Troubleshooting the git issues I always seem to have:

  1. Changing author
  2. Setting commit email address:

Note: Does anyone know how to avoid pushing from git with the .local email address? I have to do this every time and I am sure it’s a simple step that I’m just… totally missing. HALP PLZ.

Setting Commit Email Address

Globally

$ git config --global user.email "email@example.com"

Per Project

$ cd YOUR-PROJECT-DIRECTORY
$ git config user.email "email@example.com"

Changing Author

(script to run)

#!/bin/sh

git filter-branch --env-filter '

OLD_EMAIL="oldemail@Your-MacBook-Pro.local"
CORRECT_NAME="yourname"
CORRECT_EMAIL="newemail@gmail.com"

if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ]
then
    export GIT_COMMITTER_NAME="$CORRECT_NAME"
    export GIT_COMMITTER_EMAIL="$CORRECT_EMAIL"
fi
if [ "$GIT_AUTHOR_EMAIL" = "$OLD_EMAIL" ]
then
    export GIT_AUTHOR_NAME="$CORRECT_NAME"
    export GIT_AUTHOR_EMAIL="$CORRECT_EMAIL"
fi
' --tag-name-filter cat -- --branches --tags

Updated: