๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
๊ฐœ๋ฐœ/Spring

Spring Boot ํ”„๋กœ์ ํŠธ git ์—ฐ๋™

by 1mj 2022. 3. 9.

Spring Boot + Git

Spring Boot ํ”„๋กœ์ ํŠธ ํ˜•์ƒ ๊ด€๋ฆฌ๋ฅผ ์œ„ํ•ด git๊ณผ ์—ฐ๋™ํ•˜๋Š” ๋ฐฉ๋ฒ•์ด๋‹ค.

 

1. Clone Git Repository

STS์—์„œ Window > Show View > Other... > Git ๊ฒ€์ƒ‰ > Git Repositories ์„ ํƒ

์˜ค๋ฅธ ์ชฝ ์ƒ๋‹จ์— Open Perspective ๋ฒ„ํŠผ(ํ…Œ์ด๋ธ” + ๋ฒ„ํŠผ)์„ ๋ˆŒ๋Ÿฌ ๋” ์‰ฝ๊ฒŒ Git Repository์— ์ ‘๊ทผํ•  ์ˆ˜ ์žˆ๋‹ค.

 

 

2. Clone Git Repository

Clone a Git repository ๋ฒ„ํŠผ์„ ๋ˆŒ๋Ÿฌ ์ž์‹ ์˜ git respository์—์„œ ๋ณต์‚ฌํ•œ url๊ณผ git ID/PW๋ฅผ ๋„ฃ์–ด์ค€๋‹ค.

์ž์‹ ์˜ Git Repository

 

๋‹ค์Œ์œผ๋กœ ๋„˜์–ด๊ฐ€ ๋กœ์ปฌ ์ €์žฅ์†Œ๋ฅผ ์ง€์ •ํ•œ๋‹ค.

์ด๋ ‡๊ฒŒ ๋งŒ๋“ค๋ฉด Git Repository์— ๋‚ด๊ฐ€ ์—ฐ๊ฒฐํ•œ repository๊ฐ€ ์ถ”๊ฐ€๋œ๋‹ค.

 

3. Spring Boot ํ”„๋กœ์ ํŠธ Git์— ์—…๋กœ๋“œ

ํ”„๋กœ์ ํŠธ๋ฅผ ์„ ํƒํ•˜๊ณ  ๋งˆ์šฐ์Šค ์˜ค๋ฅธ์ชฝ ๋ฒ„ํŠผ์„ ํด๋ฆญํ•˜์—ฌ Team > Share Project ์„ ํƒ

์ž์‹ ์ด ์ง€์ •ํ•œ ๋กœ์ปฌ ์ €์žฅ์†Œ๋ฅผ ์„ ํƒํ•˜์—ฌ ๋™๊ธฐํ™”ํ•œ๋‹ค.

ํ”„๋กœ์ ํŠธ ์šฐํด๋ฆญํ•˜์—ฌ Team > Commit์„ ๋ˆ„๋ฅด๋ฉด ์ž์‹ ์ด ๋ณ€๊ฒฝํ•œ(์ฒ˜์Œ ์˜ฌ๋ฆฌ๋Š” ๊ฒƒ์ด๋ฏ€๋กœ ์ „์ฒด ํŒŒ์ผ) ํŒŒ์ผ์„ GitHub ์ €์žฅ์†Œ์— ์—…๋กœ๋“œ ํ•  ์ˆ˜ ์žˆ๋‹ค.

 

๋Œ“๊ธ€