๐Ÿ’ป

[PROJECT] ํ˜•์ƒ๊ด€๋ฆฌํ•˜๊ธฐ - Git/SourceTree ๋ณธ๋ฌธ

KITRI/PROJECT

[PROJECT] ํ˜•์ƒ๊ด€๋ฆฌํ•˜๊ธฐ - Git/SourceTree

๋˜ํšจ๋‹ˆ 2020. 8. 4. 12:30

ํ˜•์ƒ๊ด€๋ฆฌ ?

 

์†Œํ”„ํŠธ์›จ์–ด ๊ตฌ์„ฑ ๊ด€๋ฆฌ(์˜์–ด: Software Configuration Management) ๋˜๋Š” ํ˜•์ƒ ๊ด€๋ฆฌ๋Š” ์†Œํ”„ํŠธ์›จ์–ด์˜ ๋ณ€๊ฒฝ์‚ฌํ•ญ์„ ์ฒด๊ณ„์ ์œผ๋กœ ๊ด€๋ฆฌํ•˜๋Š” ๊ฒƒ์„ ๋งํ•œ๋‹ค.

 

 

Git ๋‹ค์šด๋กœ๋“œ ๋ฐ ์„ค์น˜

 

https://www.git-scm.com/

 

Git

 

www.git-scm.com

 

์„ค์น˜ํ•œ ํŒŒ์ผ์„ ์‹คํ–‰ํ•ด์„œ git์ด๋ผ๊ณ  ๋ช…๋ น์–ด๋ฅผ ์ณค์„๋•Œ ์•„๋ž˜์™€ ๊ฐ™์ด ๋‚˜์˜ค๋ฉด ์„ค์น˜๊ฐ€ ์ž˜ ๋œ ๊ฒƒ์ด๋‹ค. 

 

SourceTree๋‹ค์šด๋กœ๋“œ ๋ฐ ์„ค์น˜

 

https://www.sourcetreeapp.com/

 

Sourcetree | Free Git GUI for Mac and Windows

A Git GUI that offers a visual representation of your repositories. Sourcetree is a free Git client for Windows and Mac.

www.sourcetreeapp.com

์„ค์น˜ ํ›„ ๋„๊ตฌ > ์ผ๋ฐ˜ > ์ด๋ฆ„๊ณผ ์ด๋ฉ”์ผ์ฃผ์†Œ ์ž…๋ ฅ

์„ค์น˜ ํ›„ ์ƒˆ ์ €์žฅ์†Œ ์ƒ์„ฑ

๋กœ์ปฌํ™˜๊ฒฝ์„ ์ €์žฅ์†Œ๋กœ ํ•ด๋„ ๋˜๊ณ  ์›๊ฒฉ์ €์žฅ์†Œ(๊นƒ ๋ ˆํฌ์ง€ํ† ๋ฆฌ)๋ฅผ ๊ฒฝ๋กœ๋กœ ํ•ด์„œ ์ƒ์„ฑํ•  ์ˆ˜ ์žˆ๋‹ค. 

 

์ƒˆ๋กœ์šด ํŒŒ์ผ์ด ์ƒ์„ฑ๋˜๋ฉด ์Šคํ…Œ์ด์ง€์— ์˜ฌ๋ผ๊ฐ€์ง€ ์•Š์€ ํŒŒ์ผ์— ๋ณด์—ฌ์ง„๋‹ค.

 

์ฒดํฌํ•ด์ฃผ๋ฉด ์Šคํ…Œ์ด์ง€์— ์˜ฌ๋ผ๊ฐ„๋‹ค. 

์•„๋ž˜์˜ ๋ฉ”์„ธ์ง€๋ฅผ ์ž…๋ ฅ์‹œ์ผœ์„œ ํ‘ธ์‹œํ•ด์ค€๋‹ค.

 

์ปค๋ฐ‹ํ•˜๊ธฐ ์ „์—๋Š” ํ๊ธฐ(๋‚˜์˜ workspace์—์„œ๋„ ์ง€์›Œ์ง„๋‹ค.)

์ปค๋ฐ‹ ํ›„์—๋Š” ์‚ญ์ œํ•˜๊ณ ์‹ถ์€ ์ปค๋ฐ‹ ๋ฐ”๋กœ ์ „๋‹จ๊ณ„์˜ ์ปค๋ฐ‹์—์„œ ์˜ค๋ฅธ์ชฝ ๋งˆ์šฐ์Šค ํด๋ฆญ ํ˜„์žฌ ๋ธŒ๋žœ์น˜๋ฅผ ์ด ์ปค๋ฐ‹์œผ๋กœ ์ดˆ๊ธฐํ™”

Hard - master์—์„œ ์ง€์›Œ์ง€๊ณ  ์ž‘์—… ํด๋”์—์„œ๋„ ์ง€์›Œ์ง€๊ณ 

Mixed - mater์—๋Š” ์ง€์›Œ์ง€๊ณ  ์ž‘์—… ํด๋”์—์„œ๋Š” ๋‚จ์•„์žˆ์Œ

์ปค๋ฐ‹๋˜๋Œ๋ฆฌ๊ธฐ๋Š” ๋งจ ์œ„ ์ปค๋ฐ‹๋ถ€ํ„ฐํ•ด์„œ ๋˜๋Œ๋ฆฌ๊ธฐํ•ด์•ผํ•œ๋‹ค. Revert "commit msg" ๋‚˜์˜ค๋ฉด ๋˜๋Œ๋ฆฌ๊ธฐ ์‹คํ–‰๋œ ๊ฒƒ์ด๋‹ค. 

 

 

๊นƒํ—ˆ๋ธŒ ๊ณ„์ • ์ƒ์„ฑํ•˜๊ธฐ 

 

https://github.com/

 

Build software better, together

GitHub is where people build software. More than 50 million people use GitHub to discover, fork, and contribute to over 100 million projects.

github.com

๋กœ๊ทธ์ธ ํ›„ repository ์ƒ์„ฑ ํ•œ ํ›„ ํ•ด๋‹น ์ฃผ์†Œ๋ฅผ sorcetree์˜ ์ €์žฅ์†Œ ์ถ”๊ฐ€๋ฅผ ์„ ํƒํ•ด์„œ URL๊ฒฝ๋กœ์— ๋„ฃ์–ด์ค€๋‹ค. 

์›๊ฒฉ origin์ด ์ƒ์„ฑ์ด ๋˜์—ˆ์œผ๋ฉด ์ €์žฅ์†Œ ์ถ”๊ฐ€๊ฐ€ ์™„๋ฃŒ๋œ ๊ฒƒ์ด๋‹ค.

 

 

์ปค๋ฐ‹๋‚ด์šฉ์„ ์›๊ฒฉ์— push๋˜๋ฉด์€ ์›๊ฒฉ์„œ๋ฒ„์— ์˜ฌ๋ฆฌ๋Š” ๊ฒƒ์ด๋‹ค. 

์˜ฌ๋ฆฐ ํ›„์— ํ™•์ธํ•  ๊ฒƒ

 

์›๊ฒฉ์„œ๋ฒ„์˜ ์ž‘์—…์„ ๋กœ์ปฌ๋กœ ๊ฐ€์ ธ์˜ค๊ธฐ

 

์ €์žฅ์†Œ ์ƒ์„ฑ์„ ํด๋ฆญํ•œ ํ›„์— ์†Œ์Šค ๊ฒฝ๋กœ์™€ ๋ชฉ์ ์ง€ ๊ฒฝ๋กœ๋ฅผ ๋„ฃ์–ด์ฃผ๊ณ  ํด๋ก ์„ ๋ˆ„๋ฅธ๋‹ค.

 

 

ํŒ€์žฅ์ด local -> ์›๊ฒฉ์„œ๋ฒ„ ์—ฐ๊ฒฐ

ํŒ€์›์€ ์›๊ฒฉ์ €์žฅ์†Œ์—์„œ ๊ฐ€์ ธ์˜ค๊ธฐ

๋ฐ˜์‘ํ˜•

'KITRI > PROJECT' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๋‹ค๋ฅธ ๊ธ€

[Project] ๊ธฐ๋Šฅ ์ •๋ฆฌ  (0) 2020.08.03
Comments