๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
๐Ÿ’š UIUX ์›นํผ๋ธ”๋ฆฌ์…” ๊ณผ์ •(6๊ฐœ์›”)

2021-07-15 (94์ผ์ฐจ) ๊นƒํ—ˆ๋ธŒ(github)ํ˜‘์—…๋ฐฉ๋ฒ•

by widely design 2021. 7. 15.

  GITHUB 1๊ฐ•~10๊ฐ•  

 

 

- git clone ๋ฆฌํฌ์ง€ํ„ฐ๋ฆฌ์ฃผ์†Œ .

  = git init + git remote add origin ๋ฆฌํฌ์ง€ํ„ฐ๋ฆฌ์ฃผ์†Œ + git pull origin master

 

 

- ๊นƒํ—ˆ๋ธŒ(github) ํ˜‘์—…๋ฐฉ๋ฒ•

  ์ฃผ์ธ์ด ๋ฆฌํฌ์ง€ํ„ฐ๋ฆฌ ๋งŒ๋“ค๊ธฐ

  settings > Manage access > Invite a collaborator > ํ˜‘์—…์ž ์•„์ด๋”” ์ž…๋ ฅ > Add to this repository

  ํ˜‘์—…์ž๊ฐ€ ๋ฉ”์ผํ•จ์—์„œ ์ˆ˜๋ฝ ํด๋ฆญ > ์™„๋ฃŒ


<์ฃผ์ธ> 

ํŒŒ์ผ์„ ๋งŒ๋“  ํ›„, cmd์ฐฝ ์—ด๊ธฐ

git init

๋‚ด ์ •๋ณด ์ž…๋ ฅํ•˜๊ธฐ (ํ•˜๋˜๋Œ€๋กœ)

(git remote add origin ๋ฆฌํฌ์ง€ํ„ฐ๋ฆฌ์ฃผ์†Œ, git config user.name "", git config user.email "")

code .

docํด๋” ์•ˆ์—์„œ ์ž‘์—…์™„๋ฃŒ

git add .

git commit -m "์ž‘์—…๋‚ด์šฉ"

git push origin master


<ํ˜‘๋ ฅ์ž>

ํŒŒ์ผ ๋งŒ๋“  ํ›„,  cmd์ฐฝ ์—ด๊ธฐ

git clone ๋ฆฌํฌ์ง€ํ„ฐ๋ฆฌ์ฃผ์†Œ . (pull ํฌํ•จ๋œ ๊ฑฐ์ž„)

git config user.name "ํ˜‘๋ ฅ์ž์ด๋ฆ„"

git config user.email "ํ˜‘๋ ฅ์ž์ด๋ฉ”์ผ"

code .

์ž‘์—…์™„๋ฃŒ ํ›„ ์ €์žฅ

git add .

git commit -m "์ž‘์—…๋‚ด์šฉ"

git push origin master


โ€ป ์ˆ˜์ • ํ›„, pull์„ ํ•˜์ง€ ์•Š๊ณ  ๋ฐ”๋กœ  push ํ–ˆ์„ ๋•Œ → ์—…๋กœ๋“œ ๋˜์ง€ ์•Š์Œ

   ํ•ด๊ฒฐ๋ฐฉ์•ˆ : ๋‹ค์‹œ pull์„ ํ•ด์ฃผ๊ธฐ → ์ถฉ๋Œ๋œ ๋ถ€๋ถ„ ์•Œ๋ ค์คŒ (๋™์‹œ ์ž‘์—…ํ•œ ๋ถ€๋ถ„)

   ์ˆ˜์ • ์™„๋ฃŒ ํ›„ , ๋˜‘๊ฐ™์ด ๋‹ค์‹œ git push origin master ํ•ด์ฃผ๋ฉด ์—…๋กœ๋“œ ์™„๋ฃŒ

 

โ€ป git pull origin  master ์ค‘๊ฐ„์ค‘๊ฐ„ ๋งŽ์ด ํ•ด์ฃผ๊ธฐ!

   (์ƒ๋Œ€๋ฐฉ์ด ์ž‘์—…ํ•œ ๊ฒŒ ์žˆ๋‹ค๋ฉด, ์†Œ์Šค์ฝ”๋“œ๊ฐ€ ์ž๋™์œผ๋กœ ๋ฐ”๋€œ)

 

๋Œ“๊ธ€