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

2021-07-09 (88์ผ์ฐจ)PHP, GITHUB ์—…๋กœ๋“œ ๋ฐฉ๋ฒ•

by widely design 2021. 7. 10.

 PHP 5๊ฐ•~9๊ฐ• 

 

- GIT

  : ์†Œ์Šค์ฝ”๋“œ๊ด€๋ฆฌ, ํ˜‘์—…๊ฐ€๋Šฅ

  <์กฐ๊ฑด>

  : GIT ํด๋ผ์ด์–ธํŠธ, GIT ์„œ๋ฒ„๊ฐ€ ์žˆ์–ด์•ผ ํ•œ๋‹ค.

  > GIT ํด๋ผ์ด์–ธํŠธ๋Š” GIT ๋‹ค์šด๋กœ๋“œํ•˜๋ฉด ๋จ.

  > GIT ์„œ๋ฒ„๋Š” ์›๋ž˜ ์ง์ ‘ ๊ตฌ๋น„๋ฅผ ํ•ด์•ผ ํ•˜์ง€๋งŒ, GITHUB๊ฐ€ ๋Œ€์‹ ํ•ด์คŒ.

  → git ์‚ฌ์ดํŠธ ๋“ค์–ด๊ฐ€์„œ ์„ค์น˜


- git bash here

  : ํƒ์ƒ‰๊ธฐ๋ฅผ git์œผ๋กœ ์—ด๊ธฐ

 

-  git init

  : ๋กœ์ปฌ ๋ฆฌํฌ์ง€ํ„ฐ๋ฆฌ ๋งŒ๋“œ๋Š” ๋ช…๋ น์–ด

 

- git status

  : gitํด๋” ๋‚ด๋ถ€์™€ git์ด ์†ํ•ด์žˆ๋Š” ํด๋”์˜ ์ฐจ์ด์ ์„ ๋ณด์—ฌ์คŒ

  ( ๋นจ๊ฐ•ํ‘œ์‹œ :  ์ฐจ์ด์ , ์ดˆ๋กํ‘œ์‹œ : ๊ณตํ†ต์  )

 

- git add

  : ํ˜„์žฌํด๋”์— ์žˆ๋Š” ๋ชจ๋“  ๊ฒƒ๋“ค์„ git ๋ฆฌํฌ์ง€ํ„ฐ๋ฆฌ์— ๋„ฃ๊ธฐ

 

- git commit

  : ๊ธฐ๋กํ–ˆ๋˜ ๊ฒƒ์„ ๋ถˆ๋Ÿฌ๋‚ผ ์ˆ˜ ์žˆ์Œ

 

- git remote add orign "๊นƒํ—ˆ๋ธŒ ๋ฆฌํฌ์ง€ํ„ฐ๋ฆฌ์ฃผ์†Œ"

  : ์ฃผ์†Œ ๋“ฑ๋ก

 

- git remote remove " "

  : " "๋ฅผ ์ง€์šฐ๊ธฐ

 


<์Œค ์š”์ ์ •๋ฆฌ>

<๊ฐœ๋…>

์›๊ฒฉ ๋ฆฌํฌ์ง€ํ„ฐ๋ฆฌ์— ํŒŒ์ผ์„ ๋ฐ”๋กœ ์˜ฌ๋ฆด ์ˆ˜ ์—†๋‹ค.

๋กœ์ปฌ ๋ฆฌํฌ์ง€ํ„ฐ๋ฆฌ์— ๋‹ด์€ ํ›„, ๋กœ์ปฌ ๋ฆฌํฌ์ง€ํ„ฐ๋ฆฌ ์ž์ฒด๋ฅผ ์—…๋กœ๋“œ ํ•ด์•ผ ํ•œ๋‹ค.

์ž‘์—… ํด๋”์˜ ํŒŒ์ผ๋“ค์„ ๋กœ์ปฌ ๋ฆฌํฌ์ง€ํ„ฐ๋ฆฌ์— ๋‹ด์„ ๋•Œ๋Š”, ๋จผ์ € ์žฅ๋ฐ”๊ตฌ๋‹ˆ์— ๋‹ด์•„์•ผ ํ•œ๋‹ค.

์ปค๋ฐ‹์€ ์žฅ๋ฐ”๊ตฌ๋‹ˆ์— ๋‹ด๊ธด ํŒŒ์ผ๋“ค์„ ๋กœ์ปฌ ๋ฆฌํฌ์ง€ํ„ฐ๋ฆฌ์— ๋‹ด๋Š” ๊ฒƒ์„ ์˜๋ฏธํ•œ๋‹ค.

ํ‘ธ์‹œ๋Š” ๋กœ์ปฌ ๋ฆฌํฌ์ง€ํ„ฐ๋ฆฌ ์ž์ฒด๋ฅผ ์›๊ฒฉ ๋ฆฌํฌ์ง€ํ„ฐ๋ฆฌ๋กœ ์—…๋กœ๋“œ ํ•˜๋Š” ๊ฒƒ์ด๋‹ค.

 

- git init

  : ๋กœ์ปฌ ๋ฆฌํฌ์ง€ํ„ฐ๋ฆฌ ๋งŒ๋“œ๋Š” ๋ช…๋ น์–ด, ๋กœ์ปฌ ๋ฆฌํฌ์ง€ํ„ฐ๋ฆฌ๋ฅผ ์ƒ์„ฑ

 

git remote add origin ๊นƒํ—ˆ๋ธŒ์ฃผ์†Œ

  : ๋กœ์ปฌ ๋ฆฌํฌ์ง€ํ„ฐ๋ฆฌ ๋งŒ๋“  ํ›„ 1๋ฒˆ์€ ๋ฌด์กฐ๊ฑด ํ•ด์•ผํ•˜๋Š” ๋ช…๋ น์–ด

  (ex : git remote add origin https://github.com/manyrice/miniminichichi

  ๋กœ์ปฌ ๋ฆฌํฌ์ง€ํ„ฐ๋ฆฌ๋ฅผ ์›๊ฒฉ ๋ฆฌํฌ์ง€ํ„ฐ๋ฆฌ ์ถ”๊ฐ€, origin ์ด๋ผ๋Š” ๋ณ„์นญ์œผ๋กœ)

 

- git remote remove origin

  : origin ์ด๋ผ๋Š” ๋ณ„์นญ์œผ๋กœ ์ถ”๊ฐ€๋œ ์›๊ฒฉ ๋ฆฌํฌ์ง€ํ„ฐ๋ฆฌ์™€์˜ ์—ฐ๊ฒฐ ์ œ๊ฑฐ

 

- git remote -v

  : ํ˜„์žฌ ์—ฐ๊ฒฐ๋œ ์›๊ฒฉ ๋ฆฌํฌ์ง€ํ„ฐ๋ฆฌ ๋ฆฌ์ŠคํŒ…

 

- git config user.name "๊นƒํ—ˆ๋ธŒ์•„์ด๋””"

  : ์‚ฌ์šฉ์ž์ •๋ณด(์•„์ด๋””) ์ž…๋ ฅ

  (ex : git config user.name "manyrice")

 

- git config user.name

  : ์„ธํŒ…๋œ ์‚ฌ์šฉ์ž์ •๋ณด(์•„์ด๋””) ํ™•์ธ

 

- git config user.email "๊นƒํ—ˆ๋ธŒ์— ๊ฐ€์ž…ํ•  ๋•Œ ์‚ฌ์šฉํ•œ ์ด๋ฉ”์ผ์ฃผ์†Œ"

  : ์‚ฌ์šฉ์ž์ •๋ณด(์ด๋ฉ”์ผ) ์ž…๋ ฅ

  (ex : git config user.email "alsgml1966@naver.com")

 

- git config user.email

  ์„ธํŒ…๋œ ์‚ฌ์šฉ์ž์ •๋ณด(์ด๋ฉ”์ผ) ํ™•์ธ

 

- git status

  : ์ž‘์—…์‚ฌํ•ญ์„ ๋กœ์ปฌ ๋ฆฌํฌ์ง€ํ„ฐ๋ฆฌ์— ๋„ฃ๋Š” ๋ช…๋ น์–ด

  : ์ž‘์—…ํด๋”์™€ ๋กœ์ปฌ๋ฆฌํฌ์ง€ํ„ฐ๋ฆฌ์˜ ์ฐจ์ด๋ฅผ ๋ณด์—ฌ์ค๋‹ˆ๋‹ค.

  : ๋ถ‰์€์ƒ‰ ํŒŒ์ผ์€ ์žฅ๋ฐ”๊ตฌ๋‹ˆ์— ๋‹ด๊ธฐ๊ธฐ ์ „ ์ƒํƒœ

  : ๋…น์ƒ‰ ํŒŒ์ผ์€ ์žฅ๋ฐ”๊ตฌ๋‹ˆ์— ๋‹ด๊ธด ์ƒํƒœ

 

- git add .

  : ์ปค๋ฐ‹ ํ•  ํŒŒ์ผ๋“ค์„ ์žฅ๋ฐ”๊ตฌ๋‹ˆ์— ๋‹ด์Šต๋‹ˆ๋‹ค.

 

- git commit -m "์ปค๋ฐ‹ ๋ฉ”์„ธ์ง€"

 

- git log

  : ํ˜„์žฌ๊นŒ์ง€์˜ ์ปค๋ฐ‹ ๋‚ด์—ญ์„ ๋ณด์—ฌ์ค€๋‹ค.

 

- git push origin master

  : ๋กœ์ปฌ ๋ฆฌํฌ์ง€ํ„ฐ๋ฆฌ๋ฅผ ์›๊ฒฉ ๋ฆฌํฌ์ง€ํ„ฐ๋ฆฌ์— ์—…๋กœ๋“œํ•˜๋Š” ๋ช…๋ น์–ด

๋Œ“๊ธ€