๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

์ปค๋ฐ‹2

[Git ๋ช…๋ น์–ด ์ •๋ฆฌ] Repository์— add, commit, push, pull ํ•˜๊ธฐ [Git] Repository์— main branch๋กœ add, commit, push, pull ํ•˜๊ธฐ //๋กœ์ปฌ ๊นƒ ์ €์žฅ์†Œ ์ƒ์„ฑ(.git ํด๋” ์ƒ์„ฑ) $ git init //Working directory -> Staging Area $ git add [directory] $ git add . //Staging Area -> repository(.git) $ git commit -m "commit message" //add + commit ํ•œ๋ฒˆ์— $ git commit -am "commit message" //์›๊ฒฉ์ €์žฅ์†Œ์™€ ์—ฐ๊ฒฐ $ git remote add origin [์›๊ฒฉ์ €์žฅ์†Œ ์ฃผ์†Œ] //ํ˜„์žฌ ์—ฐ๊ฒฐ๋œ ์›๊ฒฉ์ €์žฅ์†Œ ํ™•์ธํ•˜๊ธฐ $ git remote -v //์—ฐ๊ฒฐ๋œ ์›๊ฒฉ์ €์žฅ์†Œ ์‚ญ์ œํ•˜๊ธฐ $ git remote.. 2021. 7. 30.
[GitHub] Repository์— 'main' branch๋กœ push ํ•˜๊ธฐ ํด๋” ๋ฐ ํŒŒ์ผ๋กœ ์ฝ”๋“œ์ž‘์„ฑ์„ ๋‹ค ํ•œ ๋’ค, ์›๊ฒฉ์ €์žฅ์†Œ์— ์ €์žฅํ•˜๋ ค๊ณ  ํ•œ๋‹ค. ๊นƒํ—ˆ๋ธŒ ๋ ˆํฌ์ง€ํ† ๋ฆฌ์—์„œ ์ดˆ๋ก์ƒ‰ New ๋ฒ„ํŠผ์„ ๋ˆŒ๋Ÿฌ์„œ commit-test ๋ผ๋Š” ๋ ˆํฌ์ง€ํ† ๋ฆฌ๋ฅผ ๋งŒ๋“ค์–ด๋ณด๊ฒ ๋‹ค. 3๊ฐœ์˜ ์ฒดํฌ ๋ฐ•์Šค ์ค‘ ์ฒซ ๋ฒˆ์งธ ๋ฐ•์Šค๋ฅผ ์„ ํƒํ•˜๊ณ  Create ํ•˜๋ฉด ์ด ๋ ˆํฌ์ง€ํ† ๋ฆฌ์—์„œ main ์ด ๋””ํดํŠธ ๋ธŒ๋žœ์น˜๋กœ ์„ค์ •๋  ๊ฒƒ์ด๊ณ  ๋‚˜์ค‘์— ์„ค์ •์— ๋“ค์–ด๊ฐ€์„œ ๋ฐ”๊ฟ€ ์ˆ˜ ์žˆ๋‹ค๊ณ  ๋‚˜์˜จ๋‹ค. ๋ ˆํฌ์ง€ํ† ๋ฆฌ๋ฅผ ์ƒ์„ฑํ•˜๋ฉด ์ด๋ ‡๊ฒŒ ๋‚˜์˜ค๋Š” ๊ฒƒ์„ ๋ณผ ์ˆ˜ ์žˆ๋‹ค. README.md ํŒŒ์ผ์„ ๋งŒ๋“ค๊ณ  ์‹ถ์ง€ ์•Š๋‹ค๋ฉด ์ฒดํฌ๋ฅผ ํ•˜์ง€ ์•Š๊ณ  ์ƒ์„ฑํ•˜๋ฉด ๋œ๋‹ค. (๊ทธ๋Ÿฌ๋ฉด ๋‚˜์ค‘์— ์ปค๋ฐ‹ ํ‘ธ์‰ฌ ํ•œ ํ›„ ๋‹ค์Œ๊ณผ ๊ฐ™์€ ์•Œ๋ฆผ์ด ๋‚˜์˜จ๋‹ค) ์ผ๋‹จ ๋‚˜๋Š” README.md ํŒŒ์ผ์„ ์ƒ์„ฑํ•œ ๋ฐฉํ–ฅ์œผ๋กœ ์›๊ฒฉ์ €์žฅ์†Œ๋ฅผ ์‚ฌ์šฉํ•ด๋ณด๊ฒ ๋‹ค. ๋‚ด๊ฐ€ ์‚ฌ์šฉํ•˜๋Š” ์—๋””ํ„ฐ๋Š” VSC(Visual Studio Code)์ด๋‹ค. test ํด๋”๋ฅผ ๋งŒ.. 2021. 7. 10.