let's get IT with DAVINA ๐Ÿ’ป

Git VS Github ๋ณธ๋ฌธ

DEV_IN/Git&Github

Git VS Github

๋‹ค๋นˆ์น˜์ฝ”๋“œ๐Ÿ’Ž 2023. 2. 8. 21:29
Git๊ณผ Github ์‚ฌ์šฉ๋ฒ•์„ ๋ธ”๋กœ๊น…ํ•˜๋ฉฐ ์นดํ…Œ๊ณ ๋ฆฌ๋ฅผ ๋ถ„๋ฅ˜ํ•˜๋Š”๋ฐ ๋ฌธ๋“ ์ด ๋‘˜์˜ ์ฐจ์ด๋ฅผ ๋ช…ํ™•ํžˆ ์•Œ๊ณ  ์žˆ๋Š”์ง€ ๊ถ๊ธˆํ•ด์กŒ๋‹ค. 

Git

  • ์†Œ์Šค ์ฝ”๋“œ๋ฅผ ํšจ์œจ์ ์œผ๋กœ ๊ด€๋ฆฌํ•˜๊ธฐ ์œ„ํ•ด ๋งŒ๋“ค์–ด์ง„ ๋ถ„์‚ฐํ˜• ๋ฒ„์ „ ๊ด€๋ฆฌ ์‹œ์Šคํ…œ
    • VCS: Version Control System
  • ์†Œ์Šค ์ฝ”๋“œ ์ˆ˜์ •์— ๋”ฐ๋ฅธ ๋ฒ„์ „์„ ๊ด€๋ฆฌํ•ด์ฃผ๋Š” ์‹œ์Šคํ…œ 
  • ๋กœ์ปฌ ์ €์žฅ์†Œ๋ฅผ ์‚ฌ์šฉ (๋‹ค๋ฅธ ๊ฐœ๋ฐœ์ž์™€ ํ˜‘์—…์˜ ๊ฐœ๋… X)

Github

  • ๋ถ„์‚ฐ ๋ฒ„์ „ ๊ด€๋ฆฌ ํˆด์ธ Git์„ ์‚ฌ์šฉํ•˜๋Š” ํ”„๋กœ์ ํŠธ๋ฅผ ์ง€์›ํ•˜๋Š” ์›นํ˜ธ์ŠคํŒ… ์„œ๋น„์Šค
  • ์–ธ์ œ, ์–ด๋””์„œ๋‚˜ ํ˜‘์—…์ด ๊ฐ€๋Šฅ
  • ๋กœ์ปฌ์—์„œ ๋ฒ„์ „ ๊ด€๋ฆฌํ•œ ์†Œ์Šค์ฝ”๋“œ๋ฅผ ํด๋ผ์šฐ๋“œ ์„œ๋ฒ„๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ์—…๋กœ๋“œํ•ด์„œ ๊ณต์œ  ๊ฐ€๋Šฅ

Git์œผ๋กœ ๋กœ์ปฌ ์ €์žฅ์†Œ์—์„œ ์ž‘์—… -> Github์— ์—…๋กœ๋“œ & Github์— ์žˆ๋Š” ์ž‘์—…๋ฌผ์„ ๋‚ด๋ ค๋ฐ›์•„์™€์„œ ์ž‘์—…

Local Repository : ๋‚ด PC์— ์ €์žฅ๋˜๋Š” ๊ฐœ์ธ ์ „์šฉ ์ €์žฅ์†Œ
Remote Repository : ์›๊ฒฉ ์ €์žฅ์†Œ ์ „์šฉ ์„œ๋ฒ„์— ์ €์žฅ๋˜๋Š” ์ €์žฅ์†Œ
Commit (์ปค๋ฐ‹) : ๋ณ€๊ฒฝ ์‚ฌํ•ญ์„ ๋กœ์ปฌ ์ €์žฅ์†Œ์— ๊ธฐ๋กํ•˜๋Š” ๊ฒƒ
- commit -m "์ž‘์—… ์ˆ˜ํ–‰ ๋‚ด์šฉ"
Push : Github์— ํŒŒ์ผ์„ ์ถ”๊ฐ€ํ•˜๊ฑฐ๋‚˜ ๋ณ€๊ฒฝ ๋‚ด์šฉ์„ ์ €์žฅํ•˜๋Š” ์ž‘์—…
Pull : Github์—์„œ ํŒŒ์ผ์„ ๋‚ด๋ ค๋ฐ›๋Š” ์ž‘์—…

์ฐธ๊ณ  ์‚ฌ์ดํŠธ

'DEV_IN > Git&Github' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๋‹ค๋ฅธ ๊ธ€

Push failed Ssh: connect to host '...' port 22: Connection timed  (7) 2023.03.03
Git Flow  (4) 2023.02.08
Github  (0) 2023.02.08
Git [๋‚ด ์‹ค์ˆ˜ ๋ณต๊ตฌํ•˜๊ธฐ] ๊ณผ๊ฑฐ๋กœ ์“ฉ ๐Ÿ’จ  (4) 2023.02.08
Git [merge]  (3) 2023.02.08
Comments