๐Ÿ‘ฉ๐Ÿป‍๐Ÿ’ป Developer/Git

[VS Code] Mac ์—์„œ GitHub ์— ๋‚ด๊ฐ€ ๋งŒ๋“  ์ฝ”๋“œ ์˜ฌ๋ฆฌ๊ธฐ

Junyung 2023. 12. 24. 02:30

1. GitHub ๊ณ„์ • ์ƒ์„ฑํ•˜๊ธฐ 

 

GitHub: Let’s build from here

GitHub is where over 100 million developers shape the future of software, together. Contribute to the open source community, manage your Git repositories, review code like a pro, track bugs and fea...

github.com

2. Git ์„ค์น˜

 

Git

 

git-scm.com

3. Terminal ์—ด๊ธฐ 

[์ ‘์†]
git config --global user.name "๋‚ด ๊นƒํ—ˆ๋ธŒ user ์ด๋ฆ„"
git config --global user.email "๊นƒํ—ˆ๋ธŒ ๊ณ„์ • ์ƒ์„ฑํ• ๋•Œ ์‚ฌ์šฉํ•œ ๋‚ด ์ด๋ฉ”์ผ"

์ƒˆ repository ์ƒ์„ฑ
README.md ์ƒ์„ฑ

terminal์— ์ฐจ๋ก€๋Œ€๋กœ ๋ช…๋ น์–ด ์ž…๋ ฅํ•˜๊ธฐ 

 

vs code ์—์„œ ์ฝ”๋“œ ์ž‘์„ฑํ•˜๊ธฐ

4. vsCode ๋‚ด  terminal ์—ด๊ธฐ

ํ„ฐ๋ฏธ๋„ ์„ ํƒ > ์ƒˆ ํ„ฐ๋ฏธ๋„

 

git add ํŒŒ์ผ๋ช…
git commit -m "ํŒŒ์ผ์— ๋Œ€ํ•œ ๊ฐ„๋‹จํ•œ ์„ค๋ช…๊ธ€"
git push origin main

-> README.md ์ƒ์„ฑ ์ดํ›„์—๋Š” ์œ„ ๋ช…๋ น์–ด๋งŒ ์ž…๋ ฅํ•˜๋ฉด ๋œ๋‹ค!!

์ฆ‰, ์ด๋ฏธ ์ƒ์„ฑ๋œ repository์— ๋‹ค๋ฅธ ๊ธ€ commit์„ ์›ํ•  ์‹œ ์œ„ ์„ธ๊ฐœ ๋ช…๋ น์–ด๋กœ๋งŒ commitํ•˜๊ธฐ