Post

🏝 ν•œ 쀄 μ½”λ”©! βŒ¨πŸ”¨πŸ˜† λΈ”λ‘œκ·Έ μ‚¬μš©λ²•

1. ν•œμ€„μ½”λ”© Repository λ₯Ό Fork ν•˜κΈ°

μš°μ„  제일 λ¨Όμ € Github λ₯Ό λ°©λ¬Έν•΄μ„œ fork λ²„νŠΌμ„ μ°Ύμ•„λˆ„λ¦…λ‹ˆλ‹€.

fork

2. Fork ν•œ 본인의 Repository μ—μ„œ μž‘μ—…ν•˜κΈ°

git μ£Όμ†Œλ₯Ό λ³΅μ‚¬ν•΄μ„œ μ›ν•˜λŠ” μœ„μΉ˜μ˜ λ””λ ‰ν† λ¦¬μ—μ„œ clone 을 ν•©λ‹ˆλ‹€.

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 둜 κ°€μ…”μ„œ

pr

μ΄λ ‡κ²Œ 생긴 곳을 κ°€μ„œ

pr2

Pull Request λ₯Ό ν•©λ‹ˆλ‹€.

pr3

ν™•μΈν•˜μ‹œκ³  Create pull request λ₯Ό λˆ„λ₯΄μ„Έμš”.

pr4

μ΄λ ‡κ²Œ λŒ“κΈ€μ„ μΆ”κ°€ν•  μˆ˜λ„ 있겠죠?

pr5

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.