๐Ÿ“ETC./โš’๏ธ Tool

[GitHub] ๊นƒํ—ˆ๋ธŒ์— ํ”„๋กœ์ ํŠธ ์˜ฌ๋ฆฌ๊ธฐ

yujch 2021. 8. 24. 20:54
๋ฐ˜์‘ํ˜•

๋ณดํ†ต์€ ์ €์žฅ์†Œ๋ฅผ ์ƒ์„ฑํ•œ๋’ค 'Upload files'๋ฅผ ํ•˜๋ฉด ์—…๋กœ๋“œ๋˜์ง€๋งŒ

ํŒŒ์ผ ๊ฐฏ์ˆ˜๊ฐ€ ๋„ˆ๋ฌด ๋งŽ์„ ๊ฒฝ์šฐ ์•ˆ๋˜๋ฏ€๋กœ

ํฐ ํ”„๋กœ์ ํŠธ๋ฅผ ์—…๋กœ๋“œํ• ๋•Œ๋Š” ์ด ๋ฐฉ๋ฒ•์œผ๋กœ ํ•˜์ž

 

 

 

 

1. Git์„ ์„ค์น˜ํ•œ๋‹ค.

https://git-scm.com/downloads

 

Git - Downloads

Downloads macOS Windows Linux/Unix Older releases are available and the Git source repository is on GitHub. GUI Clients Git comes with built-in GUI tools (git-gui, gitk), but there are several third-party tools for users looking for a platform-specific exp

git-scm.com

 

 

2. GitHub์— ์ƒˆ ์ €์žฅ์†Œ๋ฅผ ์ƒ์„ฑํ•œ๋‹ค.

์™ผ์ชฝ ์ƒ๋‹จ์—์„œ ํด๋ฆญ
์ €์žฅ์†Œ ์ด๋ฆ„์„ ์ •ํ•˜๊ณ  ์ƒ์„ฑํ•œ๋‹ค.

 

 

3. ์ƒ์„ฑ๋œ ์ €์žฅ์†Œ์˜ ์ฃผ์†Œ๋ฅผ ๊ธฐ์–ตํ•ด๋‘์ž.

.git์œผ๋กœ ๋๋‚˜๋Š” ์ฃผ์†Œ์ด๋‹ค.

 

 

4. ์—…๋กœ๋“œํ•˜๊ณ  ์‹ถ์€ ํ”„๋กœ์ ํŠธ์˜ ํด๋”๋ฅผ ๋งˆ์šฐ์Šค ์šฐํด๋ฆญ > Git Bash Here

 

 

5. ์ดˆ๊ธฐ ์„ค์ •์„ ํ•ด์ค€๋‹ค.

git config --global user.name "์œ ์ €์ด๋ฆ„"

git config --global user.email "์œ ์ € ์ด๋ฉ”์ผ"

- ์ด ์ฐฝ์—์„œ๋Š” Ctrl+v๋กœ ๋ถ™์—ฌ๋„ฃ๊ธฐ ์•ˆ๋จ => Shift + Ins ์‚ฌ์šฉํ•˜์ž

 

 

6. ํŒŒ์ผ ์ค€๋น„

git init      #.git ํŒŒ์ผ ์ƒ์„ฑ

git add .     #์„ ํƒํ•œ ํ”„๋กœ์ ํŠธ ํด๋” ๋‚ด์˜ ๋ชจ๋“  ํŒŒ์ผ ๊ด€๋ฆฌ
		-> ํŠน์ •ํŒŒ์ผ๋งŒ ํ•˜๊ณ  ์‹ถ๋‹ค๋ฉด  git add ํŒŒ์ผ์ด๋ฆ„.ํŒŒ์ผํ˜•์‹  ex) git add a.txt

git status    #์ƒํƒœํ™•์ธ

git commit -m "์ฃผ์„"     #์ปค๋ฐ‹

 

7. ์—…๋กœ๋“œํ•˜๊ธฐ

git remote add origin {์œ„ 3๋ฒˆ์—์„œ ์ €์žฅํ•œ ๊นƒํ—ˆ๋ธŒ ์ €์žฅ์†Œ ์ฃผ์†Œ}

git push -u origin master

 

 

8. ํ”„๋กœ์ ํŠธ ์—…๋กœ๋“œ ์™„๋ฃŒ

 

 

9. ํ”„๋กœ์ ํŠธ ์„ค๋ช… ์ ๊ธฐ

์„ค์ •(ํ†ฑ๋‹ˆ๋ฐ”ํ€ด) ํด๋ฆญ
Description์— ์ ๊ณ  ์ €์žฅ

๋ฐ˜์‘ํ˜•