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

2021-07-12 (91์ผ์ฐจ)GITHUB ์—…๋กœ๋“œ ๋ฐฉ๋ฒ•

by widely design 2021. 7. 14.

  php 10๊ฐ•~12๊ฐ•  

<๊นƒํ—ˆ๋ธŒ ์ƒˆ๋กœ์šด ๋ฆฌํฌ์ง€ํ„ฐ๋ฆฌ ์ƒ์„ฑํ›„ ์—ฐ๊ฒฐ๋ฐฉ๋ฒ•>

1. ์ƒˆ๋กœ์šด ๋ฆฌํฌ์ง€ํ„ฐ๋ฆฌ ๋งŒ๋“ค๊ธฐ

    ์˜ต์…˜ ๊ฑด๋“ค์ง€ ์•Š๊ธฐ

2. ๋ฐ”ํƒ•ํ™”๋ฉด์— ํด๋” ๋งŒ๋“ค๊ธฐ

3. command ์ฐฝ ์—ด๊ธฐ

  ๋ฐฉ๋ฒ•1) ํด๋” ์•ˆ์—์„œ cmd ๊ฒ€์ƒ‰+์—”ํ„ฐ

  ๋ฐฉ๋ฒ•2) code๋กœ ์—ด๊ธฐ(vs์ฝ”๋“œ) + ctrl๊ณผ~ ๋™์‹œ์— ๋ˆ„๋ฅด๊ธฐ

 

4. git init

5. git config user.name "๋‚ด์ด๋ฆ„"

6. git config user.email "๋‚ด์ด๋ฉ”์ผ"

7. git remote add origin ์ฃผ์†Œ

 

8. command์ฐฝ ๋‹ซ์€ ํ›„, ์ฝ”๋”ฉ์ž‘์—…

  ๋๋‚œ ํ›„, ์ €์žฅ ํ›„ ๋‹ค์‹œ command์ฐฝ ์—ด๊ธฐ

 

9. git add .

10. git commit -m "๋ฉ”์‹œ์ง€๋‚ด์šฉ"

11. git push origin master

-- the end -- 


< ์ž‘์—… ํ›„, ๊นƒํ—ˆ๋ธŒ ์—…๋กœ๋“œ(๋ฐฑ์—…?) ๋ฐฉ๋ฒ• >

< command์ฐฝ์— ์ž…๋ ฅ >

  1. git add .

  2. git commit -m "๋ฉ”์‹œ์ง€๋‚ด์šฉ"

  3. git push origin master


< ์ƒˆ๋กœ์šด ์žฅ์†Œ์—์„œ ๋ฆฌํฌ์ง€ํ„ฐ๋ฆฌ ๊ฐ€์ ธ์™€ ์ถ”๊ฐ€์ž‘์—…ํ›„, ์˜ฌ๋ฆฌ๊ธฐ๊นŒ์ง€ >

์œ„์™€ ๋˜‘๊ฐ™์ด ์ƒˆํด๋” ๋งŒ๋“  ํ›„, command์ฐฝ ๋“ค์–ด๊ฐ„ ํ›„

 

1. git init

2. git config user.name ""

3. git config user.email ""

4. git remote add origin ์ฃผ์†Œ

5. git pull origin master (=>์›๊ฒฉ์ง€์— ์žˆ๋Š” ์ตœ์‹  ์†Œ์Šค์ฝ”๋“œ๋ฅผ ๋ฐ›์•„๋“ค์ž„)

 

6. code. ์ฝ”๋”ฉ์ถ”๊ฐ€ ์ž‘์—… ํ›„

7. git add .

8. git commit -m "๋ฉ”์‹œ์ง€๋‚ด์šฉ"

9. git push origin master

 

 


<์„ ์ƒ๋‹˜์ด ๋งŒ๋“ค์–ด์ฃผ์‹  ์š”์ ์ •๋ฆฌ>

github ์ €์žฅ์†Œ ์‚ญ์ œ ํ›„ ์žฌ์ƒ์„ฑ   # github์—์„œ ์ˆ˜ํ–‰

์ž‘์—…ํด๋” ์ƒ์„ฑ   # ๋ฐ”ํƒ•ํ™”๋ฉด์— ์ƒˆํด๋” ์ƒ์„ฑ

์ž‘์—…ํด๋”์—์„œ cmd   # ํ•ด๋‹น ํด๋”๊ฒฝ๋กœ์— cmd ๋กœ ์ง„์ž…

git init   # ๋กœ์ปฌ ์ €์žฅ์†Œ ์ƒ์„ฑ

- ๋กœ์ปฌ ์ €์žฅ์†Œ๋ฅผ ๋งŒ๋“œ๋Š” ํ–‰์œ„, git์—์„œ ๋กœ์ปฌ์˜ ํŒŒ์ผ์„ ์›๊ฒฉ์ €์žฅ์†Œ์— ๋ณด๋‚ด๋Š” ๋ฐฉ๋ฒ•์ด ์—†๋‹ค.

  ๋‹จ ๋กœ์ปฌ ์ €์žฅ์†Œ๋ฅผ ์›๊ฒฉ ์ €์žฅ์†Œ๋กœ ์˜ฎ๊ธธ ์ˆœ ์žˆ๋‹ค.

git config user.name "๊นƒํ—ˆ๋ธŒ์•„์ด๋””"   # ๋กœ์ปฌ ์ €์žฅ์†Œ์— ์ž‘์—…์ž ์ •๋ณด ์ €์žฅ

git config user.email "๊นƒํ—ˆ๋ธŒ์ด๋ฉ”์ผ"   # ๋กœ์ปฌ ์ €์žฅ์†Œ์— ์ž‘์—…์ž ์ •๋ณด ์ €์žฅ

git remote add origin ~~~   # ๋กœ์ปฌ ์ €์žฅ์†Œ๋ฅผ ์›๊ฒฉ ์ €์žฅ์†Œ์™€ ์—ฐ๊ฒฐ

(ex : git remote add origin https://github.com/jhs512/php_blog)

code .   # vs code ๋กœ ์ž‘์—…

git add .   # ์ปค๋ฐ‹ ๋Œ€๊ธฐ๋ฆฌ์ŠคํŠธ, ์žฅ๋ฐ”๊ตฌ๋‹ˆ์— ๋‹ด๊ธฐ

git commit -m "์ž‘์—…๋‚ด์šฉ"   # ์ปค๋ฐ‹, ๋กœ์ปฌ ์ €์žฅ์†Œ์— ์ €์žฅ

git push origin master   # ํ‘ธ์‹œ, ์›๊ฒฉ ์ €์žฅ์†Œ์— ์˜ฌ๋ฆผ

๋Œ“๊ธ€