π ν μ€ μ½λ©! β¨π¨π λΈλ‘κ·Έ μ¬μ©λ²
1. νμ€μ½λ© Repository λ₯Ό Fork νκΈ°
μ°μ μ μΌ λ¨Όμ Github λ₯Ό λ°©λ¬Έν΄μ fork λ²νΌμ μ°Ύμλλ¦ λλ€.
2. Fork ν λ³ΈμΈμ Repository μμ μμ νκΈ°
git μ£Όμλ₯Ό 볡μ¬ν΄μ μνλ μμΉμ λλ ν 리μμ clone μ ν©λλ€.
1
git clone https://github.com/λλ_μμ΄λ/hanjulcoding.github.io.git .
3. λ΄λ €λ°μ μμ νκΈ°
- _posts μμ μ°λ-μ-μΌ-μλ¬Έμ λͺ©.md νμΌ μμ±
- κΈ°μ‘΄μ Posts λ₯Ό νμΈν΄μ MarkDown μμμΌλ‘ μμ±ν©λλ€.
- μμμ λ΄μ©μ μλμ κ°μ΅λλ€.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
---
title: μ λͺ©
author: μμ±μ
date: 2021-03-17 17:54:48 +0900 (리λ
μ€ λͺ
λ Ήμ΄ date '+%Y-%m-%d %H:%M:%S %z' μ μ€ννλ©΄ μκ°μ΄ λμ΅λλ€.)
categories: [μΉ΄ν
κ³ λ¦¬]
tags: [νκ·Έ]
(μΉ΄ν
κ³ λ¦¬, νκ·Έλ μλμΌλ‘ μμ±λ©λλ€.
pin: true
---
# μ λͺ©
λ΄μ©
...
...
...
λ§ν¬ λ€μ΄μ λν μΆκ° λ΄μ© νμΈμ μ¬κΈ°μμ νμΈν΄λ³΄μΈμ.
4. Commit, Push, Pull Request
μμ μλ£ ν Commit κ³Ό push λ₯Ό ν©λλ€.
1
2
git commit -m "first commit"
git push origin main
μμ νκ²½μ λ°λΌ GUI λ‘ ν μλ μκ² λ€μ!
μ΄ν Github λ‘ κ°μ μ
μ΄λ κ² μκΈ΄ κ³³μ κ°μ
Pull Request λ₯Ό ν©λλ€.
νμΈνμκ³ Create pull request
λ₯Ό λλ₯΄μΈμ.
μ΄λ κ² λκΈμ μΆκ°ν μλ μκ² μ£ ?
5. μλ³Έ μ μ₯μμμ μ λ°μ΄νΈ λ°κΈ°
μμ μ μ 미리 μ€μ ν΄μ κΌ! Pull μ λ°κ³ μ§νν΄μ.
1. λ΄ λ‘컬 PCμ ν¬ν¬ μ μ₯μ Clone
1
git clone https://github.com/6lueparr0t/hanjulcoding.git
2. Clone ν νλ‘μ νΈ λλ ν λ¦¬λ‘ μ΄λ ν 리λͺ¨νΈ μ μ₯μ νμΈ
1
2
3
4
git remote -v
origin https://github.com/6lueparr0t/hanjulcoding.github.io.git (fetch)
origin https://github.com/6lueparr0t/hanjulcoding.github.io.git (push)
3. 리λͺ¨νΈ μ μ₯μμ μλ³Έ μ μ₯μ μΆκ°
1
git remote add upstream https://github.com/hanjulcoding/hanjulcoding.github.io.git
git remote -v
Β λͺ
λ Ήμ΄λ₯Ό μ
λ ₯ν΄λ³΄λ©΄ upstreamμΌλ‘ μλ³Έ μ μ₯μκ° μΆκ°λ κ² νμΈ
1
2
3
4
5
6
git remote -v
origin https://github.com/6lueparr0t/hanjulcoding.github.io.git (fetch)
origin https://github.com/6lueparr0t/hanjulcoding.github.io.git (push)
upstream https://github.com/hanjulcoding/hanjulcoding.github.io.git (fetch)
upstream https://github.com/hanjulcoding/hanjulcoding.github.io.git (push)
4. μλ³Έ μ μ₯μ fetch, merge
1
2
git fetch upstream
git merge upstream/main
5. ν¬ν¬ μ μ₯μλ‘ push
1
git push
This post is licensed under CC BY 4.0 by the author.