๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
728x90
๋ฐ˜์‘ํ˜•

๐Ÿคผ Git6

[Git] Git์œผ๋กœ ํ˜‘์—…ํ•˜๋Š” ๋ฐฉ๋ฒ• ์•Œ์•„๋ณด๊ธฐ (feat. Git-Flow) ์•ˆ๋…•ํ•˜์„ธ์š” Foma๐Ÿ’ป ์ž…๋‹ˆ๋‹ค. ์˜ˆ์ „์— Github์œผ๋กœ ํ˜‘์—…ํ•˜๋Š” ๋ฐฉ๋ฒ•์— ๋Œ€ํ•ด ๊ธ€์„ ์ž‘์„ฑํ•œ ์ ์ด ์žˆ์Šต๋‹ˆ๋‹ค. (Github Flow) (ํ˜น์‹œ ์•ˆ๋ณด์‹  ๋ถ„๋“ค์€ ์—ฌ๊ธฐ ์—์„œ ํ™•์ธํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.) ํ•˜์ง€๋งŒ Github-Flow๋ฟ๋งŒ ์•„๋‹ˆ๋ผ Gitlab-Flow,Git-Flow ๋“ฑ ๋‹ค์–‘ํ•œ Work-Flow๋“ค์ด ์žˆ๋Š”๋ฐ์š”. ์˜ค๋Š˜์€ ์ข€ ๋” ๋ณต์žกํ•œ ํ”„๋กœ์ ํŠธ์—์„œ ์‚ฌ์šฉ๋˜๋Š” ๋ธŒ๋žœ์น˜ ๊ด€๋ฆฌ ์ „๋žต์ธ Git-Flow์— ๋Œ€ํ•ด์„œ ์•Œ์•„๋ณด๋ ค๊ณ  ํ•ฉ๋‹ˆ๋‹ค. ๋ฐ”๋กœ ์‹œ์ž‘ํ• ๊ฒŒ์š”~ Git-Flow๋ž€? Vincent Driessen๊ฐ€ ๋งŒ๋“  Git์œผ๋กœ ๋ธŒ๋žœ์น˜๋ฅผ ๋‚˜๋ˆ  ๊ฐœ๋ฐœํ•˜๋Š” ๋ฐฉ์‹ ์ค‘ ํ•˜๋‚˜์ž…๋‹ˆ๋‹ค. ํŠน์ง•์€ 5์ข…๋ฅ˜์˜ ๋ธŒ๋žœ์น˜๋ฅผ ์ด์šฉํ•˜์—ฌ ์ €์žฅ์†Œ๋ฅผ ์šด์˜ํ•˜๊ฒŒ ๋ฉ๋‹ˆ๋‹ค. 5์ข…๋ฅ˜์˜ ๋ธŒ๋žœ์น˜๋Š” ์•„๋ž˜์™€ ๊ฐ™์Šต๋‹ˆ๋‹ค. Master(main) Release Develop Feature Hotf.. 2022. 3. 18.
[๐Ÿคผ Git] Github ์˜คํ”ˆ์†Œ์Šค ๊ธฐ์—ฌํ•ด๋ณด๊ธฐ ์•ˆ๋…•ํ•˜์„ธ์š” Foma ๐Ÿ’ป ์ž…๋‹ˆ๋‹ค! ์˜ค๋Š˜์€ ์˜คํ”ˆ์†Œ์Šค์— ๊ธฐ์—ฌํ•˜๋Š” ๋ฐฉ๋ฒ•์— ๋Œ€ํ•ด์„œ ์•Œ์•„๋ณด๋ ค๊ณ  ํ•ฉ๋‹ˆ๋‹ค! ๋ฐ”๋กœ ์‹œ์ž‘ํ• ๊ฒŒ์š”~ 1. ๊ธฐ์—ฌํ•  ์˜คํ”ˆ์†Œ์Šค ์ฐพ๊ธฐ ํ‰์†Œ ์ž๊ธฐ๊ฐ€ ๊ด€์‹ฌ์ด ์žˆ๊ฑฐ๋‚˜, ๊ธฐ์—ฌํ•ด๋ณด๊ณ  ์‹ถ์€ ๊ณต๊ฐœ ๋ ˆํฌ์ง€ํ† ๋ฆฌ๋ฅผ ์ฐพ์Šต๋‹ˆ๋‹ค. (์ €๋Š” iOS ๋ฉด์ ‘์งˆ๋ฌธ์„ ์ •๋ฆฌํ•˜๋Š” iOS-Dev-Career ๋ผ๋Š” ๋ ˆํฌ์ง€ํ† ๋ฆฌ๋ฅผ ์„ ํƒํ–ˆ์Šต๋‹ˆ๋‹ค.) 2. ๋‚ด ๋ ˆํฌ์ง€ํ† ๋ฆฌ๋กœ ๊ฐ€์ ธ์˜ค๊ธฐ ๋ ˆํฌ์ง€ํ† ๋ฆฌ ์šฐ์ธก ์ƒ๋‹จ์— ๋ณด๋ฉด Fork๋ผ๊ณ  ์ ํ˜€์žˆ์„๊ฑฐ์—์š”. ํ•ด๋‹น ๋ฒ„ํŠผ์„ ๋ˆŒ๋Ÿฌ์„œ ๋‚ด ๋ ˆํฌ์ง€ํ† ๋ฆฌ๋กœ ๊ฐ€์ ธ์˜ต๋‹ˆ๋‹ค. ๊ฐ€์ ธ์˜ค๋ฉด ์ž์‹ ์˜ ๊นƒํ—™์— ๋ ˆํฌ์ง€ํ† ๋ฆฌ๊ฐ€ ๋งŒ๋“ค์–ด์ง„ ๊ฒƒ์„ ๋ณผ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. 3. ๋กœ์ปฌ๋กœ ๋ ˆํฌ์ง€ํ† ๋ฆฌ ๋ณต์‚ฌํ•ด์˜ค๊ธฐ ์œ„์—์„œ ๊ฐ€์ ธ์˜จ ๋ ˆํฌ์ง€ํ† ๋ฆฌ๋ฅผ ๋กœ์ปฌ(์ž์‹ ์˜ ์ปดํ“จํ„ฐ)์— ๋ณต์‚ฌํ•ฉ๋‹ˆ๋‹ค. ํ„ฐ๋ฏธ๋„์„ ์ผœ๊ณ  ์›ํ•˜๋Š” ์œ„์น˜๋กœ ์ด๋™ํ•œ ๋’ค ์•„๋ž˜์™€ ๊ฐ™์ด git clone ๋ณต์ œํ•œ ๊นƒํ—™ ์ฃผ์†Œ๋ฅผ ์ ์–ด์ค๋‹ˆ๋‹ค. $ .. 2021. 12. 28.
[Git] ์ž๊ธฐ ์ปดํ“จํ„ฐ(Local) ํด๋” Github์— ์—ฐ๊ฒฐํ•˜๊ธฐ ์•ˆ๋…•ํ•˜์„ธ์š” Foma ๐Ÿ’ป ์ž…๋‹ˆ๋‹ค! ์•Œ๊ณ ๋ฆฌ์ฆ˜ ์˜ˆ์ œ๋“ค์„ ์ œ ์ปดํ“จํ„ฐ ํด๋”์— ๋ชจ์•„๋†“์•˜๋Š”๋ฐ ์ด๊ฑธ ๊นƒํ—™ ๋ ˆํฌ์ง€ํ† ๋ฆฌ์— ์—ฐ๊ฒฐํ•ด์„œ ๊ด€๋ฆฌํ•˜๊ณ  ์‹ถ๋”๋ผ๊ตฌ์š”. ๊ทธ๋ž˜์„œ ๋กœ์ปฌ ํด๋”๋ฅผ ๊นƒํ—™์— ์—ฐ๊ฒฐํ•˜๋Š” ๋ฐฉ๋ฒ•์— ๋Œ€ํ•ด ์ •๋ฆฌํ•ด๋ณด๋ ค๊ณ  ํ•ฉ๋‹ˆ๋‹ค! ๋ฐ”๋กœ ์‹œ์ž‘ํ• ๊ฒŒ์š”~ Github์— ๋ ˆํฌ์ง€ํ† ๋ฆฌ ์ƒ์„ฑ ์ž์‹ ์˜ ๊นƒํ—™์œผ๋กœ ๊ฐ€์„œ ๋ ˆํฌ์ง€ํ† ๋ฆฌ๋ฅผ ์ƒ์„ฑํ•ด์ฃผ์„ธ์š”! ๋กœ์ปฌ ํด๋” ์ƒ์„ฑ ์ž์‹ ์˜ ์ปดํ“จํ„ฐ์—๋„ ์›ํ•˜๋Š” ์œ„์น˜์— ํด๋”๋ฅผ ์ƒ์„ฑํ•ด์ค๋‹ˆ๋‹ค. ๋กœ์ปฌ ํด๋”์— ์›๊ฒฉ ์ €์žฅ์†Œ ์—ฐ๊ฒฐํ•˜๊ธฐ ๋กœ์ปฌ ํด๋”๊ฐ€ ์žˆ๋Š” ์œ„์น˜๋กœ ์ด๋™ํ•ด์ค๋‹ˆ๋‹ค. cd ๋กœ์ปฌ์ €์žฅ์†Œ ์ฃผ์†Œ ์›๊ฒฉ ์ €์žฅ์†Œ์—์„œ Code๋ผ๊ณ  ์ดˆ๋ก์ƒ‰ ๋ฒ„ํŠผ์ด ์žˆ์„๊ฑฐ์—์š”. ๊ฑฐ๊ธฐ์„œ HTTPS ์ฃผ์†Œ๋ฅผ ๋ณต์‚ฌํ•ด์ค๋‹ˆ๋‹ค. ๋จผ์ € git init ๋ถ€ํ„ฐ ์ง„ํ–‰ํ•ด ์ค๋‹ˆ๋‹ค git init ๊ทธ ๋‹ค์Œ ํ„ฐ๋ฏธ๋„์— ์•„๋ž˜์™€ ๊ฐ™์ด ๋ณต์‚ฌํ•ด์ค€ ์›๊ฒฉ์ €์žฅ์†Œ HTTPS ์ฃผ์†Œ์™€ ํ•จ๊ป˜ ์ž‘์„ฑํ•ด์ค๋‹ˆ๋‹ค. git .. 2021. 10. 14.
[Git] ์—ฌ๋Ÿฌ ๋ ˆํฌ์ง€ํ† ๋ฆฌ ํ•˜๋‚˜๋กœ ํ•ฉ์น˜๊ธฐ(Merge multiple repository) ์•ˆ๋…•ํ•˜์„ธ์š” Foma๐Ÿ‘Ÿ ์ž…๋‹ˆ๋‹ค! ์˜ค๋Š˜์€ ์—ฌ๋Ÿฌ ๋ ˆํฌ์ง€ํ† ๋ฆฌ๋ฅผ ํ•˜๋‚˜๋กœ ํ•ฉ์น˜๋Š” ๋ฐฉ๋ฒ•์— ๋Œ€ํ•ด์„œ ์•Œ์•„๋ณผ๊ฑด๋ฐ์š”. ์˜ˆ์ „์— ํ”Œ๋Ÿฌํ„ฐ ๊ณต๋ถ€ํ•˜๋˜ ๊ฐ„๋‹จํ•œ ๋ฏธ๋‹ˆ ํ”„๋กœ์ ํŠธ๋“ค์ด ๋งŽ์ด ์Œ“์—ฌ์„œ ์ด๊ฑธ ํ•˜๋‚˜์˜ Flutter Example์ด๋ผ๋Š” ๋ ˆํฌ์ง€ํ† ๋ฆฌ๋กœ ํ•ฉ์น˜๊ณ  ์‹ถ๋”๋ผ๊ตฌ์š”. ๊ทธ๋ž˜์„œ ์˜ค๋Š˜์€ ์ด๋ ‡๊ฒŒ ํ•˜๋‚˜๋กœ ํ•ฉ์น˜๋Š” ๊ณผ์ •์— ๋Œ€ํ•ด์„œ ์ •๋ฆฌํ•˜๋„๋ก ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค! ๋ฐ”๋กœ ์‹œ์ž‘ํ• ๊ฒŒ์š”~ Github ๋จผ์ € Github ์‚ฌ์ดํŠธ๋กœ ์ด๋™ํ•ด์ฃผ์„ธ์š”. GitHub: Where the world builds software GitHub is where over 65 million developers shape the future of software, together. Contribute to the open source community, manage your Git repo.. 2021. 8. 14.
[Git] Github ๊ฐ™์€ ์ €์žฅ์†Œ ํ•จ๊ป˜ ์“ฐ๊ธฐ(feat. Github Flow) ์•ˆ๋…•ํ•˜์„ธ์š”๐Ÿ Foma๐Ÿ ์ž…๋‹ˆ๋‹ค! ์˜ค๋Š˜์€ Git์œผ๋กœ ๊ฐ™์€ ์ €์žฅ์†Œ๋ฅผ ํ•จ๊ป˜ ์“ฐ๋ฉด์„œ ํ˜‘์—…ํ•˜๋Š” ๋ฒ•์— ๋Œ€ํ•ด์„œ ์ •๋ฆฌํ•ด๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค. ๋‹ค์–‘ํ•œ ํ˜‘์—… ๋ฐฉ์‹ ์ค‘ Gihub Flow์— ๋Œ€ํ•ด์„œ ๋‹ค๋ค„๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค. ๋ฐ”๋กœ ์‹œ์ž‘ํ• ๊ฒŒ์š”! (Visual Studio ๊ธฐ์ค€์œผ๋กœ ์„ค๋ช…๋“œ๋ฆฌ๊ฒ ์Šต๋‹ˆ๋‹ค.) 1. ํ•จ๊ป˜ ์“ธ ์ €์žฅ์†Œ ๋งŒ๋“ค๊ณ  ์ดˆ๋Œ€ํ•˜๊ธฐ Github์œผ๋กœ ๋“ค์–ด๊ฐ€์„œ New๋ฒ„ํŠผ์„ ๋ˆŒ๋Ÿฌ ์ƒˆ๋กœ์šด ์ €์žฅ์†Œ๋ฅผ ๋งŒ๋“ค์–ด์ฃผ์„ธ์š”. ์›ํ•˜๋Š” ์ €์žฅ์†Œ ์ด๋ฆ„์„ ์ ๊ณ  Create Repository๋ฅผ ๋ˆŒ๋Ÿฌ์ค๋‹ˆ๋‹ค. ๋งŒ๋“ค์–ด์ค€ ์ €์žฅ์†Œ์˜ Settings๋กœ ๋“ค์–ด๊ฐ€์„œ ์™ผ์ชฝ ํƒญ์— ์žˆ๋Š” Manage access๋ฅผ ๋ˆŒ๋Ÿฌ์ค๋‹ˆ๋‹ค. Inviete a collaborator ๋ฒ„ํŠผ์„ ๋ˆŒ๋Ÿฌ ํ•จ๊ป˜ ํ•  ์‚ฌ๋žŒ์„ ์ฐพ์•„์ค๋‹ˆ๋‹ค. ํ•จ๊ป˜ํ•  ์‚ฌ๋žŒ์„ ๊ณ ๋ฅด๊ณ  Add to this repository๋ฅผ ๋ˆŒ๋Ÿฌ ์ถ”๊ฐ€ํ•ด์ค๋‹ˆ๋‹ค. ์ด๋ ‡๊ฒŒ.. 2021. 5. 13.
[Github] ๊นƒํ—™ ๋ฆฌ๋“œ๋ฏธ ํ”„๋กœํ•„ ๊พธ๋ฏธ๊ธฐ ์•ˆ๋…•ํ•˜์„ธ์š” Foma ์ž…๋‹ˆ๋‹ค! ์˜ค๋Š˜์€ ๊นƒํ—™์— ๋Œ€ํ•ด์„œ ๋‹ค๋ค„๋ณผ๊ฑด๋ฐ์š”. ์˜ˆ์ „๋ถ€ํ„ฐ ๊ฐœ๋ฐœ์ž๋ถ„๋“ค์˜ ๊นƒํ—™์— ๋“ค์–ด๊ฐ€๋ฉด README ํŒŒ์ผ์„ ์ด์šฉํ•ด์„œ ์ž์‹ ์„ ์†Œ๊ฐœํ•˜๋Š” ๊ฒƒ์„ ๋ดค๋Š”๋ฐ์š”. ์˜ค๋Š˜์€ ์ €๋„ ํ•œ๋ฒˆ ๊นƒํ—™์— ์žˆ๋Š” ํ”„๋กœํ•„์„ ๊พธ๋ฉฐ๋ณธ ๊ณผ์ •๋“ค์„ ์ •๋ฆฌํ•ด๋ณด๋ ค๊ณ  ํ•ฉ๋‹ˆ๋‹ค! Preview Repository ๋งŒ๋“ค๊ธฐ ๊ฐ€์žฅ ๋จผ์ € ํ•ด์ฃผ์…”์•ผํ• ๊ฑด Repository๋ฅผ ๋งŒ๋“ค์–ด์ฃผ์…”์•ผ ํ•ฉ๋‹ˆ๋‹ค. ํ•˜์ง€๋งŒ ์ฃผ์˜ํ•  ์ ์€ ๋ฐ˜๋“œ์‹œ!!! github ๊ณ„์ •์— ์žˆ๋Š” ์ด๋ฆ„๊ณผ ๋˜‘๊ฐ™์ด ๋งŒ๋“ค์–ด์ฃผ์…”์•ผ ํ•ฉ๋‹ˆ๋‹ค. ๊ทธ ๋‹ค์Œ ์•„๋ž˜์— ์žˆ๋Š” Add a README file์„ ์ฒดํฌํ•ด์ค€ ๋‹ค์Œ ์ƒˆ๋กœ์šด ๋ ˆํฌ์ง€ํ† ๋ฆฌ๋ฅผ ๋งŒ๋“ค์–ด์ฃผ์„ธ์š”! README ํŒŒ์ผ ํŽธ์ง‘ํ•˜๊ธฐ ์ด๋ ‡๊ฒŒ ๋“ค์–ด๊ฐ€๋ฉด README.md ํŒŒ์ผ์„ ๋ณผ ์ˆ˜ ์žˆ์„๊ฑฐ์—์š”. ์—ฌ๊ธฐ์„œ ์šฐ์ธก ์ƒ๋‹จ์— ์žˆ๋Š” ์—ฐํ•„ ๋ชจ์–‘์„ ๋ˆŒ๋Ÿฌ์„œ README ํŒŒ์ผ์„ ํŽธ์ง‘ํ•ด์ค๋‹ˆ๋‹ค. ํ”„.. 2021. 3. 8.
728x90
๋ฐ˜์‘ํ˜•