๐ŸŒฑ Repository ํ•ฉ์น˜๊ธฐ

๊ถŒ๊ทœ๋ฆฌยท2023๋…„ 5์›” 10์ผ
0

๐Ÿ‘ฉ๐Ÿปโ€๐Ÿ’ปFrontEnd

๋ชฉ๋ก ๋ณด๊ธฐ
17/29

๊นƒํ—™ ์ดˆ๋ณด ์ค‘์˜ ์ดˆ๋ณด๊ฐ€ ์“ฐ๋Š” Repository ํ•ฉ์น˜๊ธฐ ์Šคํ‚ฌ ๐Ÿ”ฎ

1. GitHub์— Repository ์ƒ์„ฑํ•˜๊ธฐ

๊นƒํ—ˆ๋ธŒ์—์„œ ์ƒˆ๋กœ์šด ๋ ˆํŒŒ์ง€ํ† ๋ฆฌ๋ฅผ ์ƒ์„ฑํ•œ๋‹ค.
์ด ๋ ˆํฌ์ง€ํ† ๋ฆฌ์— ์˜ฎ๊ธฐ๊ณ  ์‹ถ์€ ๋ ˆํฌ์ง€ํ† ๋ฆฌ๋ฅผ ์˜ฎ๊ธธ ๊ฒƒ์ด๋‹ค.

์ด๋•Œ, ์ƒˆ๋กœ์šด ๋ ˆํŒŒ์ง€ํ† ๋ฆฌ๋ฅผ "๋ถ€๋ชจ", ๊ธฐ์กด์— ์žˆ๋˜(์˜ฎ๊ฒจ์งˆ) ๋ ˆํŒŒ์ง€ํ† ๋ฆฌ๋ฅผ "์ž์‹"์ด๋ผ ๋ถ€๋ฅด๊ฒ ๋‹ค.

๐Ÿšจ ๊ธฐ์กด์— ์žˆ๋˜ ๋ ˆํŒŒ์ง€ํ† ๋ฆฌ A์— ๊ธฐ์กด์— ์žˆ๋˜ ๋ ˆํŒŒ์ง€ํ† ๋ฆฌ B๋ฅผ ์˜ฎ๊ธด๋‹ค๋ฉด, ๋ ˆํŒŒ์ง€ํ† ๋ฆฌ A๋ฅผ "๋ถ€๋ชจ"๋ผ๊ณ  ์ƒ๊ฐํ•˜๊ธฐ !

2. ๋ถ€๋ชจ ๋ ˆํŒŒ์ง€ํ† ๋ฆฌ ์ฃผ์†Œ ๋ณต์‚ฌ

3. cmd (๋ช…๋ นํ”„๋กฌํฌํŠธ) ์‹คํ–‰

git clone [ ๋ถ€๋ชจ ๋ ˆํŒŒ์ง€ํ† ๋ฆฌ ์ฃผ์†Œ ]
cd [ ๋ถ€๋ชจ ๋ ˆํŒŒ์ง€ํ† ๋ฆฌ ์ด๋ฆ„ ]

"ํ„ฐ๋ฏธ๋„์—์„œ ํด๋ก ํ•˜๊ณ  ํ•ด๋‹น ๋ ˆํŒŒ์ง€ํ† ๋ฆฌ๋กœ ์ด๋™ํ•œ๋‹ค" ๋Š” ์˜๋ฏธ์ด๋‹ค.

echo "# ๋ถ€๋ชจ ๋ ˆํŒŒ์ง€ํ† ๋ฆฌ๋ช…" >> README.md
git add README.md
git commit -m "์ปค๋ฐ‹ ๋ฉ”์„ธ์ง€"
git push origin main

์•„๋ฌด ๋‚ด์šฉ์ด๋‚˜ ์ปค๋ฐ‹ํ•ด์„œ push ํ•˜์—ฌ ์ปค๋ฐ‹ ๋‚ด์šฉ์„ ๋‚จ๊ธด๋‹ค. ๋‚จ๊ธฐ์ง€ ์•Š์„ ์‹œ, ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ•˜๋‹ˆ ๊ผญ ์ž‘์„ฑํ•˜๊ธฐ!

git subtree add --prefix=[ ์ž์‹ ๋ ˆํŒŒ์ง€ํ† ๋ฆฌ ์ด๋ฆ„ ][ ์ž์‹ ๋ ˆํŒŒ์ง€ํ† ๋ฆฌ ์ฃผ์†Œ ] [ ์ž์‹ ๋ ˆํŒŒ์ง€ํ† ๋ฆฌ ๋ธŒ๋žœ์น˜๋ช… ]

ํ•ฉ์น˜๊ณ  ์‹ถ์€ ์ž์‹ ๋ ˆํŒŒ์ง€ํ† ๋ฆฌ ์ฃผ์†Œ๋ฅผ ๋ณต์‚ฌํ•˜์—ฌ ๋ถ€๋ชจ ๋ ˆํŒŒ์ง€ํ† ๋ฆฌ์— ์ถ”๊ฐ€ํ•œ๋‹ค.

git push

๋ณ€๊ฒฝ์‚ฌํ•ญ์„ push ํ•œ๋‹ค.

3. GitHub์—์„œ ๋ฐ”๋€ ๊ฑฐ ํ™•์ธ!

๐Ÿ“ข ์„ฑ๊ณต์ ์œผ๋กœ ๋ถ€๋ชจ ๋ ˆํŒŒ์ง€ํ† ๋ฆฌ๋กœ ์˜ฎ๊ฒผ๋‹ค๋ฉด, ์ž์‹ ๋ ˆํŒŒ์ง€ํ† ๋ฆฌ๋Š” ์ง€์›Œ๋„ ๋œ๋‹ค. ์ง€์›Œ๋„ ์˜ฎ๊ธด ๋‚ด์šฉ์ด ์‚ญ์ œ๋˜์ง€ ์•Š์Œ !!

profile
๊ธฐ๋ก์žฅ ๐Ÿ“

0๊ฐœ์˜ ๋Œ“๊ธ€