γ Click : Ruby Install
Ruby μ€μΉ μ΄μ :
λμ κ°μ²΄ μ§ν₯ μ€ν¬λ¦½νΈ νλ‘κ·Έλλ° μΈμ΄μΈ Rubyλ‘ μμ±λμκΈ° λλ¬Έμ
λ‘컬 κ°λ° νκ²½ μΈν μ μν΄μλ Rubby μ€μΉκ° νμν©λλ€.
fileμ΄ μλ κ²½λ‘μμ cmdλΌκ³ κ²μμ ν©λλ€.
gem install bundler
bundle
jekyll serve
.github
test
.editorconfig
.gitattributes
.travis.yml
CHANGELOG.md
docs(μν νμΌλ€μ΄ λ€μ΄κ° μλ ν΄λ)
μ λ ν΄λμμ μ§μ μ§μ μ΅λλ€.
pushλ₯Ό ν΄λ³΄κ² μ΅λλ€.
git add --all
git commit -m "First Upload"
git push -u origin main
Trouble Shooting
tnsqo@DESKTOP-FK3U9VS MINGW64 /c/sun/sunbae_blog (main)
$ git push -u origin main
To https://github.com/SsunLee/ssunlee.github.io.git
! [rejected] main -> main (non-fast-forward)
error: failed to push some refs to 'https://github.com/SsunLee/ssunlee.github.io.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
tnsqo@DESKTOP-FK3U9VS MINGW64 /c/sun/sunbae_blog (main)
$ git pull origin main --allow-unrelated-histories
From https://github.com/SsunLee/ssunlee.github.io
* branch main -> FETCH_HEAD
CONFLICT (add/add): Merge conflict in README.md
Auto-merging README.md
Automatic merge failed; fix conflicts and then commit the result.
PUSH κ° μ λλ‘ λμλ€λ©΄ λ΄ github μ£Όμμ μ μν λλ λμΌνκ²
νμλλ κ²μ νμΈ ν μ μμ΅λλ€.
gem install bundler
bundle
jekyll serve
λλ
bundle exec jekyll serve
λΈλ‘κ·Έ κ²μλ¬Ό μμ±μ λ€μ΄λ° λ£°μ λ§κ²
YEAR-MONTH-DAY-title.md λΌκ³ ν©λλ€.
μμμ λ§κ² .md νμΌμ μμ±νλ©΄ μλμΌλ‘ λ¨λμ§ λ³΄μμΌ κ² μ΅λλ€.