Skip to content
@mensa-algorithm

mensa-algorithm

git organization ์‚ฌ์šฉ๋ฒ• - ์ž‘์„ฑ์ž amm0124

Overview

main branch๋Š” ์ตœ์ข…์ ์œผ๋กœ ์™„๋ฃŒ๋œ ์ฝ”๋“œ๋งŒ ์˜ฌ๋ฆฝ๋‹ˆ๋‹ค. ๊ฐ์ž ์ด๋ฆ„๋ณ„๋กœ branch๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค.

step1 - ์ž์‹ ์˜ branch์— ๋ฌธ์ œ ํ•ด๊ฒฐํ•˜๊ธฐ

git clone https://github.com/mensa-algorithm/2024-2.git

์„ ํ†ตํ•ด local ์ €์žฅ์†Œ์— repository๋ฅผ cloneํ•ฉ๋‹ˆ๋‹ค. main branch๋งŒ clone์ด ๋ฉ๋‹ˆ๋‹ค.

git branch 

๋ช…๋ น์–ด๋ฅผ ํ†ตํ•ด main branch๋งŒ ์žˆ๋Š”์ง€ ํ™•์ธํ•ด์ฃผ์„ธ์š”. ์ด์ œ cloneํ•œ repository๋กœ ๊ฒฝ๋กœ๋ฅผ ์ด๋™ํ•ฉ๋‹ˆ๋‹ค.

cd 2024-2

์ด๋™ํ–ˆ์œผ๋ฉด, ์ž์‹ ์ด ์ž‘์—… ํ•  branch๋ฅผ ์ƒ์„ฑํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

image

๊ฐ์ž ์ด๋ฆ„(๋‹‰๋„ค์ž„)๋ณ„๋กœ ๋ฏธ๋ฆฌ branch๋ฅผ ๋งŒ๋“ค์–ด๋†จ์Šต๋‹ˆ๋‹ค. ์ดํ›„ ์•„๋ž˜ ๋ช…๋ น์–ด๋ฅผ ํ†ตํ•ด, ์ž์‹ ์˜ local์— branch๋ฅผ ๋งŒ๋“ค๊ณ , ์ด๋™ํ•ฉ๋‹ˆ๋‹ค.

git branch <์ž์‹ ์˜ ์ด๋ฆ„(๋‹‰๋„ค์ž„)>
git checkout <์ž์‹ ์˜ ์ด๋ฆ„(๋‹‰๋„ค์ž„)>

์ž์‹ ์˜ ๋‹‰๋„ค์ž„์— ํ•ด๋‹นํ•˜๋Š” directory๋ฅผ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค.

mkdir <์ž์‹ ์˜ ์ด๋ฆ„(๋‹‰๋„ค์ž„)>
touch <์ž์‹ ์˜ ์ด๋ฆ„(๋‹‰๋„ค์ž„)>/README.md
cd <์ž์‹ ์˜ ์ด๋ฆ„(๋‹‰๋„ค์ž„)>

README.md๋Š” ๋””๋ ‰ํ† ๋ฆฌ์ž„์„ ์•Œ๋ ค์ฃผ๊ธฐ ์œ„ํ•ด ์ž„์‹œ๋กœ ์ƒ์„ฑํ–ˆ์Šต๋‹ˆ๋‹ค. ๊ฒฝ๋กœ๋ฅผ ์ด๋™ํ–ˆ์Šต๋‹ˆ๋‹ค. ์ดํ›„ ps๋ฅผ ์ง„ํ–‰ํ•˜๋Š” ํ”Œ๋žซํผ ๋””๋ ‰ํ† ๋ฆฌ๋ฅผ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค.

mkdir <platform .. ex boj, programmers..>

ํ”Œ๋žซํผ ๋””๋ ‰ํ† ๋ฆฌ๋ฅผ ์ƒ์„ฑํ–ˆ์œผ๋ฉด,๋ฅผ pushํ•ฉ๋‹ˆ๋‹ค.

git push origin <์ž์‹ ์˜ ์ด๋ฆ„(๋‹‰๋„ค์ž„)>

์ดํ›„, ์ž์‹ ์˜ branch์— code๊ฐ€ push ์™„๋ฃŒ ๋๋Š”์ง€ ํ™•์ธํ•ฉ๋‹ˆ๋‹ค.

์ดํ›„ PR์„ ์ง„ํ–‰ํ•ฉ๋‹ˆ๋‹ค. ๋งŒ์•ฝ ๋ฌธ์ œ๋ฅผ ํ•ด๊ฒฐํ•˜์ง€ ๋ชปํ–ˆ๊ณ , ๋‹ค๋ฅธ ํŒ€์›๋“ค์˜ ์˜๊ฒฌ์„ ๋“ฃ๊ณ  ์‹ถ์œผ๋ฉด, PR์„ ํ•˜์ง€ ์•Š๊ณ  step1.1 ๋ฐ step1.2 ๋กœ ๋„˜์–ด๊ฐ‘๋‹ˆ๋‹ค.

step1.1 - Review (์„ ํƒ ์‚ฌํ•ญ)

ํŒ€์›๋“ค์—๊ฒŒ ์ž์‹ ์˜ ์ฝ”๋“œ ๋ฆฌ๋ทฐ๋ฅผ ๋“ฃ๊ณ  ์‹ถ์œผ๋ฉด Issue ๋ฐœํ–‰ - Review ํ…œํ”Œ๋ฆฟ์„ ์„ ํƒํ•ฉ๋‹ˆ๋‹ค. image

image

์œ„ ์–‘์‹์— ๋งž๊ฒŒ ๋‚ด์šฉ์„ ์ž‘์„ฑํ•œ ํ›„, Issue๋ฅผ ๋ฐœํ–‰ํ•ฉ๋‹ˆ๋‹ค.

step1.2 - ๋ฌธ์ œ ํ•ด๊ฒฐํ•˜์ง€ ๋ชปํ–ˆ์„ ๊ฒฝ์šฐ (์„ ํƒ ์‚ฌํ•ญ)

๋ฌธ์ œ๋ฅผ ํ•ด๊ฒฐํ•˜์ง€ ๋ชปํ•ด์„œ, ํŒ€์›๋“ค์—๊ฒŒ ์กฐ์–ธ์„ ์–ป๊ณ  ์‹ถ๋‹ค๋ฉด Issue ๋ฐœํ–‰ - ์–ด๋ ค์šด ๋ฌธ์ œ ํ…œํ”Œ๋ฆฟ์„ ์„ ํƒํ•ฉ๋‹ˆ๋‹ค. image

image

์œ„ ์–‘์‹์— ๋งž๊ฒŒ ๋‚ด์šฉ์„ ์ž‘์„ฑํ•œ ํ›„, Issue๋ฅผ ๋ฐœํ–‰ํ•ฉ๋‹ˆ๋‹ค.

step1.3 - ํŒ€์›๋“ค์˜ ์˜๊ฒฌ์„ ๋“ค์€ ํ›„ (์„ ํƒ ์‚ฌํ•ญ)

ํŒ€์›๋“ค์˜ ์˜๊ฒฌ์„ ๋“ค์€ ํ›„, ๋‹ค์‹œ ๋ฌธ์ œ๋ฅผ ํ•ด๊ฒฐํ•ฉ๋‹ˆ๋‹ค. ์ดํ›„, ๋ฌธ์ œ๋ฅผ ํ‘ผ ํ›„, code PR์„ ์ง„ํ–‰ํ•ฉ๋‹ˆ๋‹ค.

step2 - ๋ฌธ์ œ ํ•ด๊ฒฐ ๋ฐ Pull Request

๋ฌธ์ œ ํ•ด๊ฒฐ์„ ํ–ˆ์œผ๋ฏ€๋กœ, ๋ฌธ์ œ ํ•ด๊ฒฐ Issue๋ฅผ ๋ฐœํ–‰ํ•ฉ๋‹ˆ๋‹ค. ์™œ๋ƒํ•˜๋ฉด ํŒ€์›๋“ค์—๊ฒŒ ์–ด๋–ค ๋ฌธ์ œ๋ฅผ ํ’€์—ˆ๋Š”์ง€ ์•Œ๋ ค์ฃผ๊ธฐ ์œ„ํ•ด์„œ์ž…๋‹ˆ๋‹ค!

image

์ดํ›„, PR์„ ์ง„ํ–‰ํ•ฉ๋‹ˆ๋‹ค. image

๋งŒ์•ฝ, ์ˆ˜์ • ์‚ฌํ•ญ์ด๋‚˜ edge case๊ฐ€ ๋ฐœ๊ฒฌ ๋˜์–ด pr์ด ๊ฑฐ๋ถ€๋‹นํ•œ ๊ฒฝ์šฐ๋Š”, PR์„ ๋‹ซ์ง€ ๋ง๊ณ , ๋‹ค์‹œ commit์„ ํ•˜๋ฉด ๋ฉ๋‹ˆ๋‹ค.
๊ทธ๋Ÿฌ๋ฉด ์ž๋™์ ์œผ๋กœ PR์— ๋ฐ˜์˜์ด ๋ฉ๋‹ˆ๋‹ค. ์ดํ›„ amm0124์˜ pr ์Šน์ธ์ด ์™„๋ฃŒ๋˜๋ฉด ๋์ž…๋‹ˆ๋‹ค.

step3 - ์œ ์˜ ์‚ฌํ•ญ

์—ฌ๋Ÿฌ ์‚ฌ๋žŒ์ด ์‚ฌ์šฉํ•˜๋Š” repository์ด๋ฏ€๋กœ ๋‹ค๋ฅธ ์‚ฌ๋žŒ์˜ ๋””๋ ‰ํ† ๋ฆฌ ๋ฐ branch์— ๊ฐ€์„œ ๋‚ด์šฉ์„ ์ˆ˜์ •ํ•˜๋Š” ์ผ์€ ์—†๋„๋ก ํ•ฉ๋‹ˆ๋‹ค!!!!

pr conflict ํ•ด๊ฒฐํ•˜๊ธฐ ํž˜๋“ญ๋‹ˆ๋‹ค!!!

step3.1 - local๊ณผ ์›๊ฒฉ์˜ ๋™๊ธฐํ™”

๋งŒ์•ฝ ์ž์‹ ์˜ ์›๊ฒฉ ์ €์žฅ์†Œ(github/<์ž์‹  ์ด๋ฆ„>)์— ์ˆ˜๋™์œผ๋กœ ๋‚ด์šฉ์„ ๋ณ€๊ฒฝํ•˜์˜€๊ณ , local๊ณผ ๋™๊ธฐํ™”๋ฅผ ์›ํ•œ๋‹ค๋ฉด ์•„๋ž˜ ๋ช…๋ น์–ด๋ฅผ ์‹คํ–‰ํ•ด์ฃผ์„ธ์š”.

git fetch 
git pull origin <์ž์‹ ์˜ branch ์ด๋ฆ„>

์ด๋Š” ๋ณ€๊ฒฝ ์‚ฌํ•ญ์„ ๋ฐ›์•„์™€์„œ, pullํ•˜๋Š” ๊ณผ์ •์ž…๋‹ˆ๋‹ค. ์ด ๋•Œ, local ์ž‘์—… ์‚ฌํ•ญ์€ ๋‚ ์•„๊ฐ€๋ฏ€๋กœ, ๋ฐ˜๋“œ์‹œ ๋‹ค๋ฅธ ๊ณณ์— ์ €์žฅํ•ด์ฃผ์„ธ์š”! ๋งŒ์•ฝ ์•ˆ ๋œ๋‹ค๋ฉด ์ €์—๊ฒŒ ๋งํ•ด์ฃผ์„ธ์š”.

์ด์ƒ ๋ชจ๋‘ ์ฆ๊ฑฐ์šด ์•Œ๊ณ ๋ฆฌ์ฆ˜ ~ ์ฆ์•Œ

Pinned Loading

  1. 2024-2 2024-2 Public

    2024-2 algorithm study

    Python 4

Repositories

Showing 2 of 2 repositories
  • 2024-2 Public

    2024-2 algorithm study

    mensa-algorithm/2024-2โ€™s past year of commit activity
    Python 4 0 3 0 Updated Dec 8, 2024
  • .github Public
    mensa-algorithm/.githubโ€™s past year of commit activity
    0 0 0 0 Updated Sep 19, 2024

Top languages

Loadingโ€ฆ

Most used topics

Loadingโ€ฆ