Skip to content

nada1221/algorithm-study

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

43 Commits
ย 
ย 
ย 
ย 

Repository files navigation

algorithm-study

with CodeStates 40th ์Šคํ„ฐ๋”” ์นดํŽ˜


์ด ์ €์žฅ์†Œ๋Š” ์•Œ๊ณ ๋ฆฌ์ฆ˜ ์†Œ๋ชจ์ž„ 3์กฐ์˜ ์•Œ๊ณ ๋ฆฌ์ฆ˜ ์Šคํ„ฐ๋””๋ฅผ ์œ„ํ•œ ๊ณต๊ฐ„์ž…๋‹ˆ๋‹ค.


โœ… ์Šคํ„ฐ๋”” ์ง„ํ–‰ ๋ฐฉํ–ฅ

  • ๋งค์ฃผ ๊ธˆ์š”์ผ ์ž์ •๊นŒ์ง€ ์ •ํ•ด์ง„ ๋ถ„๋Ÿ‰์˜ ์•Œ๊ณ ๋ฆฌ์ฆ˜์„ ํ’€๊ณ  PR(Pull Request)์„ ๋‚จ๊น๋‹ˆ๋‹ค.
    • ๋งค์ฃผ ์›”์š”์ผ ์•Œ๊ณ ๋ฆฌ์ฆ˜ ์†Œ๋ชจ์ž„ ๊ฐ€์ด๋“œ ์ผ์ • ํ›„ merge ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค.
    • ๋…ผ์˜ ํ›„ ์ˆ˜์ •๋  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
  • ์Šคํ„ฐ๋””๋Š”
    • ๋ณธ ์ €์žฅ์†Œ(์Šคํ„ฐ๋”” repository. ์ดํ•˜ ์ค‘์•™ ์ €์žฅ์†Œ)์™€
    • ๊ฐ ๊ฐœ์ธ์˜ ๊ณ„์ •์œผ๋กœ forkํ•œ ์›๊ฒฉ ์ €์žฅ์†Œ(๋ณธ์ธ์˜ ์›๊ฒฉ ์ €์žฅ์†Œ),
    • ๋กœ์ปฌ ์ €์žฅ์†Œ์—์„œ ์ง„ํ–‰๋ฉ๋‹ˆ๋‹ค.
  • ๋ชจ๋“  ์ฝ”๋“œ ๊ธฐ์—ฌ์ž๋Š” ๊ฐ ๊ฐœ์ธ์˜ ๋กœ์ปฌ ์ €์žฅ์†Œ์—์„œ ๊ฐœ๋ฐœํ•œ ๋‚ด์šฉ์„ ๋ณธ์ธ์˜ ์›๊ฒฉ ์ €์žฅ์†Œ๋กœ pushํ•˜๊ณ  ์ด ๋‚ด์šฉ์„ ์ค‘์•™ ์ €์žฅ์†Œ์— PRํ•ฉ๋‹ˆ๋‹ค.
  • ๋‹ค๋ฅธ ์Šคํ„ฐ๋””์›์˜ PR ๋‚ด์šฉ์„ ๋ณด๊ณ  ์ž์œ ๋กญ๊ฒŒ comment(์ฝ”๋“œ ๋ฆฌ๋ทฐ)๋ฅผ ๋‚จ๊ฒจ์ฃผ์„ธ์š”!๐Ÿ˜ƒ

โœ… ์ฐธ์—ฌ ๋ฐฉ๋ฒ•

1 ~ 3 ์€ ํ•œ ๋ฒˆ๋งŒ, 4 ~ 9 ๊ณผ์ •์„ ๋ฐ˜๋ณตํ•˜์—ฌ ์ง„ํ–‰ํ•ฉ๋‹ˆ๋‹ค.

  1. ์ค‘์•™ ์ €์žฅ์†Œ๋ฅผ ๋‚˜์˜ ๊นƒํ—ˆ๋ธŒ ๊ณ„์ •์— fork ํ•œ๋‹ค.

  2. ๋กœ์ปฌ ์ €์žฅ์†Œ์— ๋ณธ์ธ์˜ ์›๊ฒฉ ์ €์žฅ์†Œ๋ฅผ clone ํ•œ๋‹ค.

    $ git clone ๋ณธ์ธ์˜ ์›๊ฒฉ ์ €์žฅ์†Œ URL
  3. PR์ด ๋ฐ˜์˜๋˜์–ด ๋ณ€๊ฒฝ๋œ ์ค‘์•™ ์ €์žฅ์†Œ์˜ ๋‚ด์šฉ์„ ๊ฐ ๊ฐœ์ธ์˜ ๋กœ์ปฌ ์ €์žฅ์†Œ์— ๋ฐ›์•„ ์˜ฌ ์ˆ˜ ์žˆ์–ด์•ผ ํ•˜๋ฏ€๋กœ ์ค‘์•™ ์ €์žฅ์†Œ๋„ ๋กœ์ปฌ์— ์—ฐ๊ฒฐํ•œ๋‹ค.

    • 2.์—์„œ cloneํ•œ ๋ณธ์ธ์˜ ์›๊ฒฉ ์ €์žฅ์†Œ์—๋Š” ์ž๋™์œผ๋กœ origin์ด๋ผ๋Š” ์ด๋ฆ„์ด ๋ถ€์—ฌ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

    • ์ค‘์•™์›๊ฒฉ์ €์žฅ์†Œ๋ฅผ upstream์ด๋ž€ ์ด๋ฆ„์œผ๋กœ ์ถ”๊ฐ€ํ•ฉ๋‹ˆ๋‹ค.

      $ git remote add upstream https://github.com/seb-fe-40-algorithm-3/baekjoon-algorithm-study.git
      
      ## git ๋ฆฌ๋ชจํŠธ url ๋ณด๊ธฐ
      $ git remote -v
  4. ์Šคํ„ฐ๋”” ์ง„ํ–‰ ์ฃผ์ฐจ๋กœ ๋ธŒ๋žœ์น˜ ์ƒ์„ฑํ•œ ํ›„ ์ƒ์„ฑํ•œ ๋ธŒ๋žœ์น˜๋กœ ์ด๋™

    ## 1์ฃผ์ฐจ์ผ ๊ฒฝ์šฐ
    $ git checkout -b feature/1์ฃผ์ฐจ
    ## n์ฃผ์ฐจ์ผ ๊ฒฝ์šฐ
    $ git checkout -b feature/n์ฃผ์ฐจ
  5. ์ด๋™ํ•œ ๋ธŒ๋žœ์น˜์—์„œ ํ”„๋กœ์ ํŠธ ์ž‘์—…์„ ์‹œ์ž‘ํ•œ๋‹ค.

    • n์ฃผ์ฐจ ํด๋” ์ƒ์„ฑ

    • n์ฃผ์ฐจ ํด๋” ํ•˜์œ„์— ์ž์‹ ์˜ ์ด๋ฆ„์œผ๋กœ ํด๋”๋ฅผ ์ƒ์„ฑํ•˜๊ณ  ํด๋” ๋‚ด์— ์†Œ์Šค์ฝ”๋“œ๋ฅผ ์ž‘์„ฑํ•œ๋‹ค. (๐Ÿšซ ํƒ€์ธ์˜ ์†Œ์Šค๋ฅผ ์ ˆ๋Œ€๋กœ!! ์ˆ˜์ •ํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.)

      ์˜ˆ) baekjoon-online-judge > 2์ฃผ์ฐจ > ๊น€์ง„ํฌ > 01_1330.js
      
    • ์กฐ์žฅ์€ n์ฃผ์ฐจ ํด๋” ์•ˆ์— n์ฃผ์ฐจ.mdํŒŒ์ผ๋„ ์ƒ์„ฑํ•˜์—ฌ ์ž‘์„ฑํ•œ๋‹ค.

      • 1์ฃผ์ฐจ.md

        # ์ž…์ถœ๋ ฅ๊ณผ ์‚ฌ์น™์—ฐ์‚ฐ
        
        ์ž…๋ ฅ, ์ถœ๋ ฅ๊ณผ ์‚ฌ์น™์—ฐ์‚ฐ์„ ์—ฐ์Šตํ•ด ๋ด…์‹œ๋‹ค. Hello World! (์ด 15๋ฌธ์ œ)
        
  6. ์ž‘์„ฑ๋œ ๋‚ด์šฉ์„ ๋ณธ์ธ์˜ ์›๊ฒฉ ์ €์žฅ์†Œ๋กœ push ํ•œ๋‹ค.

    $ git add .
    $ git commit -m "์ปค๋ฐ‹ ๋ฉ”์‹œ์ง€" # ์ปค๋ฐ‹ ์ปจ๋ฒค์…˜์— ๋Œ€ํ•ด ์ƒ๊ฐํ•ด๋ด…์‹œ๋‹ค!
    $ git push origin feature/n์ฃผ์ฐจ
  7. PR์„ ๋‚ ๋ฆฐ๋‹ค.๐Ÿ•Š

    • ๋ณธ์ธ์˜ ์›๊ฒฉ ์ €์žฅ์†Œ ๊นƒํ—ˆ๋ธŒ ํŽ˜์ด์ง€์—์„œ
    • pushํ•œ ๋ธŒ๋žœ์น˜๋ฅผ ์„ ํƒํ•˜์—ฌ
    • ์ค‘์•™ ์ €์žฅ์†Œ์˜ main ๋ธŒ๋žœ์น˜์— Pull Request ํ•ฉ๋‹ˆ๋‹ค.
      • PR ์ปจ๋ฒค์…˜์— ๋Œ€ํ•ด์„œ๋„ ์ƒ๊ฐํ•ด ๋ด…์‹œ๋‹ค!
  8. ์ž์œ ๋กญ๊ฒŒ ์ฝ”๋“œ๋ฆฌ๋ทฐ๋ฅผ ํ•œ๋‹ค.

    • ๋ฐฉ์‹, ๊ธฐ๊ฐ„์— ๋Œ€ํ•œ ๋…ผ์˜ ํ•„์š”
  9. PR์ด merge๋œ ํ›„ ์ค‘์•™ ์ €์žฅ์†Œ์— ์žˆ๋Š” ๋‹ค๋ฅธ ๊ธฐ์—ฌ์ž์˜ ์†Œ์Šค์ฝ”๋“œ๋ฅผ ๋ณธ์ธ ์›๊ฒฉ ์ €์žฅ์†Œ์— ๊ฐ€์ ธ์˜ค๊ณ  ์‹ถ์€ ๊ฒฝ์šฐ

    $ git checkout main
    $ git pull upstream main
    $ git push origin main
    • ์ดํ›„ 4๋ฒˆ ๊ณผ์ •๋ถ€ํ„ฐ ๋ฐ˜๋ณตํ•˜์—ฌ ์ง„ํ–‰

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%