Github ๋ฐฉ๋ฒ•

Git Workflow

git-workflow

๐Ÿ’ก ๋‘๋ฃจ๋ญ‰์‹คํ•˜๋˜ ํ๋ฆ„์— ๋„์›€์ด ๋œ ์‚ฌ์ง„




Github ๋ช…๋ น์–ด

  • git init : ๋กœ์ปฌ ํด๋”์— git ํŒŒ์ผ ์ƒ์„ฑ

  • git remote add origin https://github.com/(repository ์ฃผ์†Œ)
    : ๋กœ์ปฌ ์ €์žฅ์†Œ์™€ ๊นƒํ—ˆ๋ธŒ ์ €์žฅ์†Œ ์—ฐ๋™

  • git status : ํ˜„์žฌ ๋กœ์ปฌ ์ €์žฅ์†Œ ์ƒํƒœ ํ™•์ธ

  • git add . : ๋ณ€๊ฒฝ๋œ ํŒŒ์ผ ์Šคํ…Œ์ด์ง•

  • git commit -m โ€œ์ปค๋ฐ‹ ๋ฉ”์‹œ์ง€โ€ : ๋ณ€๊ฒฝ๋œ ๋‚ด์šฉ ๋“ฑ๋ก (์•„์ง ์ €์žฅ์†Œ์— ๋ฐ˜์˜โœ–๏ธ)

  • git log : ์ปค๋ฐ‹ ๋œ ๋‚ด์šฉ ํ™•์ธ

  • gitk - - all : GUI๋กœ ๋กœ๊ทธ ํ™•์ธ ๊ฐ€๋Šฅ

  • git push origin main : ๋กœ์ปฌ ํŒŒ์ผ ์ €์žฅ์†Œ์— ๋ฐ˜์˜

  • git pull origin main : ์ €์žฅ์†Œ ํŒŒ์ผ ๋กœ์ปฌ์— ๋ฐ˜์˜

  • git clone https://github.com/(repository ์ฃผ์†Œ) :



Categories:

Updated:

Leave a comment