Git & Github 2

[ Git, Github ] Git ํ˜‘์—… ํ”Œ๋กœ์šฐ ์ข…๋ฅ˜, Git-flow

๊ณต๋ถ€ํ•œ ๋‚ด์šฉ์„ ์ •๋ฆฌํ•œ ๊ธ€์ž…๋‹ˆ๋‹ค. Git๊ณผ Github Git ํ˜‘์—… ํ”Œ๋กœ์šฐ Git-flow๋ž€? 1. Git ํ˜‘์—… ์›Œํฌํ”Œ๋กœ์šฐ 1.1 Centralized workflow ๋‹จ์ผ ์ค‘์•™ ์ €์žฅ์†Œ ์ง‘์ค‘ํ˜• ๋‹จ์ผ ์ค‘์•™ ์ €์žฅ์†Œ์™€ master ๋ธŒ๋žœ์น˜๋ฅผ ์ด์šฉํ•œ ์›Œํฌ ํ”Œ๋กœ์šฐ 1.2 Feature Branch Workflow ๊ธฐ๋Šฅ๋ณ„ ๋ธŒ๋žœ์น˜๋ฅผ ๋งŒ๋“ค์–ด ๊ทธ ๋ธŒ๋žœ์น˜์—์„œ๋งŒ ์ž‘์—…์ด ์ด๋ฃจ์–ด์ง„๋‹ค. ์ž‘์—…์ด ๋๋‚˜๋ฉด ๊ธฐ๋Šฅ ๋ธŒ๋žœ์น˜๋ฅผ master ๋ธŒ๋žœ์น˜๋กœ ๋ณ‘ํ•ฉํ•œ๋‹ค. 1.3 Gitflow Workflow ์•„๋ž˜ ์ž์„ธํ•œ ์„ค๋ช… ์ž‘์„ฑ. 1.4 Forking Workflow ํ”„๋กœ์ ํŠธ ๊ด€๋ฆฌ์ž์™€ ํ”„๋กœ์ ํŠธ ๊ฐœ๋ฐœ์ž๋ฅผ ๊ตฌ๋ถ„ํ•œ๋‹ค. ํ”„๋กœ์ ํŠธ ๊ฐœ๋ฐœ์ž๋“ค์€ ๊ณต์‹ ์›๊ฒฉ์ €์žฅ์†Œ๋ฅผ forkํ•˜์—ฌ ๊ฐ ๊ฐœ์ธ ๋ณ„ ์›๊ฒฉ์ €์žฅ์†Œ๋ฅผ ์ƒ์„ฑํ•˜์—ฌ ์‚ฌ์šฉํ•œ๋‹ค. ํ”„๋กœ์ ํŠธ ๊ด€๋ฆฌ์ž๋งŒ์ด ๊ณต์‹ ์›๊ฒฉ ์ €์žฅ์†Œ์— ์ ‘๊ทผํ•  ์ˆ˜..

Git & Github 2021.09.24

[ Git , Github ] Git๊ณผ Github๋ž€?

๊ณต๋ถ€ํ•œ ๋‚ด์šฉ์„ ์ •๋ฆฌํ•œ ๊ธ€์ž…๋‹ˆ๋‹ค. Git๊ณผ Github Git์ด๋ž€? Git๊ณผ Github์˜ ํ•„์š”์„ฑ ๊ธฐ๋ณธ Bash ๋ช…๋ น์–ด 1. Git์ด๋ž€? ๋ฆฌ๋ˆ…์Šค ์ปค๋„์„ ๊ฐœ๋ฐœํ•œ Linus Torvalds๊ฐ€ ๋งŒ๋“  ์†Œ์Šค์ฝ”๋“œ ๋ฒ„์ „๊ด€๋ฆฌ ๋„๊ตฌ์ด๋‹ค. Git ํด๋ผ์ด์–ธํŠธ๋ฅผ ์„ค์น˜ํ•˜๋ฉด ๋‚ด ์ปดํ“จํ„ฐ์—์„œ ๋ฒ„์ „๊ด€๋ฆฌ๋ฅผ ํ•  ์ˆ˜ ์žˆ๋‹ค. 1.1 ์†Œ์Šค์ฝ”๋“œ ๋ฒ„์ „๊ด€๋ฆฌ ๋„๊ตฌ ์†Œ์Šค์ฝ”๋“œ๋ฅผ ๋ฒ„์ „๋ณ„๋กœ ๋”ฐ๋กœ ์ €์žฅํ•˜์—ฌ ๋ฒ„์ „๋ณ„ ์ฐจ์ด ๋น„๊ต, ๋ถ„์„์— ์šฉ์ดํ•˜๋‹ค. ์›ํ•˜๋Š” ๋ฒ„์ „์œผ๋กœ ์ด๋™์ด ๊ฐ€๋Šฅํ•˜๋ฉฐ ์—ฌ๋Ÿฌ ๋ฒ„์ „์„ ๋™์‹œ์— ๊ฐœ๋ฐœํ•  ์ˆ˜ ์žˆ๊ธฐ ๋•Œ๋ฌธ์— ํ˜‘์—…์— ์œ ์šฉํ•˜๋‹ค. ๋ฒ„์ „๊ด€๋ฆฌ ์Šคํ† ๋ฆฌ ๊ฒŒ์ž„ ์‹œ ์ค‘๊ฐ„ ์ค‘๊ฐ„ ์ง€๊ธˆ๊นŒ์ง€์˜ ๊ฒŒ์ž„ ๊ธฐ๋ก์„ ์ €์žฅํ•˜๋Š” ๊ฒƒ์„ ๋ฒ„์ „๊ด€๋ฆฌ๋ผ๊ณ  ๋ณผ ์ˆ˜ ์žˆ๋‹ค. (Day 1, Day 2, ...) ๋ฒ„์ „๊ด€๋ฆฌ Version Control ํ”„๋กœ๊ทธ๋žจ์˜ ์†Œ์Šค ์ฝ”๋“œ, ๋ฌธ์„œ, ๊ทธ๋ž˜ํ”ฝ ๋ฐ ๊ด€๋ จ ํŒŒ์ผ๋“ค์„ ..

Git & Github 2021.09.21
728x90