새로운 Repository를 만든다.
👉 이때 Repository 이름은 username.github.io 로 만든다
clone 하기
👉 나의 경우 소스트리를 통해 간편하게 clone 하였다.
파일 생성
cd mayacrew.github.io
echo "Hello World" > index.html
commit & push
도메인에 username.github.io 검색해서 확인하기
You don't have write permissions for the /Library/Ruby/Gems/2.6.0 directory.
$ brew update
$ brew install rbenv ruby-build
$ rbenv versions
$ rbenv install 2.6.4
$ rbenv global 2.6.4
$ vim ~/.zhsrc
해당 코드 추가
[[ -d ~/.rbenv ]] && \
export PATH=${HOME}/.rbenv/bin:${PATH} && \
eval "$(rbenv init -)"
$ source ~/.zhsrc
$ gem install jekyll bundler
$ cd mayacrew.github.io
$ jekyll new ./
👉 해당 코드를 실행하기전 index.html를 삭제해야한다. 파일이 있을 경우 모두 삭제하거나 위 명령어에서 --force를 붙여 실행해야한다.
$ bundle install
$ bundle exec jekyll serve
commit / push -> mayacrew.github.io 재접속 확인