๐ Github(๊นํ๋ธ)๋?
[Git] ๊น(Git)์ด๋? ๊นํ๋ธ(Github)๋? / ์ฐจ์ด์
๐ Git์ด๋? ์์ค์ฝ๋ ์์ ์ ๋ฐ๋ฅธ ๋ฒ์ ์ ๊ด๋ฆฌํด์ฃผ๋ ๋ฒ์ ๊ด๋ฆฌ ์์คํ (VCS)์ด๋ค. ๋ชจ๋ ํ์ผ์ ๋ณํ๋ฅผ ๊ธฐ๋กํ๊ณ , ๊ฐ์ ํ์ผ์ ๋ํ ๊ฐ๊ธฐ ๋ค๋ฅธ ๋ฒ์ ์ ๋ณด๊ดํ๋ค. ๋ถ์ฐํ ๋ฒ์ ๊ด๋ฆฌ ์์คํ ์ผ๋ก
devjindev.tistory.com
[Git] ์์ด๋ณด๋ฅผ ์ํ ๊น ๋ช ๋ น์ด ์ ๋ฆฌ
๐ Git ์ ์ฅ์ ๋ง๋ค๊ธฐ > git init : git ์ด๊ธฐํ (์ ์ฅ์ ์์ฑ) > git config --global user.name "๋ด ์ด๋ฆ" : ๋ด ์ด๋ฆ ๋ฑ๋ก > git config --global user.email "๋ด ๋ฉ์ผ์ฃผ์" : ๋ด ๋ฉ์ผ ๋ฑ๋ก ๐ ํ์ฌ ์์ ์ ์ฅ..
devjindev.tistory.com
commit(์ปค๋ฐ) : Git์ ํ์ผ์ ์ถ๊ฐํ๊ฑฐ๋ ๋ณ๊ฒฝ ๋ด์ฉ์ ์ ์ฅํ๋ ์์
push(ํธ์ฌ) : Github์ ํ์ผ์ ์ถ๊ฐํ๊ฑฐ๋ ๋ณ๊ฒฝ ๋ด์ฉ์ ์ ์ฅํ๋ ์์
pull(ํ) : Github์์ ํ์ผ์ ๋ค์ด๋ก๋ํ๋ ์์
1. GitHub ํ์๊ฐ์
โ ๊นํ๋ธ ๊ณต์ ํํ์ด์ง(github.com/)์ ์ ์ํฉ๋๋ค.
GitHub: Where the world builds software
GitHub is where over 50 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 feat...
github.com
โก ํ์๊ฐ์ ์ ํฉ๋๋ค.
โข ํ์๊ฐ์ ์๋ฃ ํ, ํ์๊ฐ์ ์ ์ ๋ ฅํ ์ด๋ฉ์ผ์ ์ ์ํ์ฌ ์ด๋ฉ์ผ์ ๊ฒ์ฆ(verify) ํฉ๋๋ค.
2. Git repository ์์ฑ
โ ๋ด ๋ฆฌํฌ์งํ ๋ฆฌ์ ๋ค์ด๊ฐ๋๋ค.
โก ์ ๋ฆฌํฌ์งํ ๋ฆฌ๋ฅผ ์์ฑํฉ๋๋ค.
โข ๋ฆฌํฌ์งํ ๋ฆฌ ์ด๋ฆ ์ ๋ ฅ - 'Public(์ ์ฒด๊ณต๊ฐ)/Private(๋น๊ณต๊ฐ)' ์ ํ - 'Create repository' ํด๋ฆญ
3. Github(์๊ฒฉ ์ ์ฅ์)์ Git(๋ก์ปฌ ์ ์ฅ์) ์ฐ๊ฒฐํ๊ธฐ
* ์๊ฒฉ ์ ์ฅ์ : ์๋ฒ ๋ฑ ๋คํธ์ํฌ์ ์กด์ฌ => Github
๋ก์ปฌ ์ ์ฅ์ : ๋ด ์ปดํจํฐ์ ์กด์ฌ => Git
โ ์์ - ๊ฒ์ - '๋ช ๋ น ํ๋กฌํํธ(cmd)' ๊ฒ์ - '๊ด๋ฆฌ์ ๊ถํ์ผ๋ก ์คํ' ํด๋ฆญ
โก Github์์ ์์ฑํ git repository์ ์ฐ๊ฒฐํ ํด๋๋ก ํ์ฌ ์์น ์ด๋ (์ ๋ ์ฐ๊ฒฐํ ํด๋๋ก, test ํด๋ ์์ text.txt ํ์ผ์ ์์ฑํ์์ต๋๋ค.)
> cd ํด๋ ๊ฒฝ๋ก
โข git repository ์ด๊ธฐํ
> git init
โฃ Github์ Git ์ฐ๊ฒฐ
> git remote add origin ์๊ฒฉ ์ ์ฅ์ ์ฃผ์
* ์๊ฒฉ ์ ์ฅ์ ์ฃผ์ : Github์์ ์์ฑํ git repository ์ฃผ์
4. Github(์๊ฒฉ ์ ์ฅ์)์ Git(๋ก์ปฌ ์ ์ฅ์) ์ฌ๋ฆฌ๊ธฐ (Push)
โ ๋ณ๊ฒฝ๋ ํ์ผ๋ค์ ๋ชจ๋ ์ถ์
> git add .
โก commit ์์ฑ (์์ ์ด commit ํ ๋ฉ์ธ์ง๋ฅผ " " ์์ ์ ๋ ฅํ๋ฉด ๋ฉ๋๋ค.)
> git commit -m "message"
* commit : git repository์ ๊ธฐ๋กํ ๋ฉ์ธ์ง
โข Github์ Git ์ฌ๋ฆฌ๊ธฐ
> git push origin master
โฃ push ์๋ฃ
(+) 5. Git(์๊ฒฉ ์ ์ฅ์)์์ Git(๋ก์ปฌ ์ ์ฅ์)์ ๋ด๋ ค๋ฐ๊ธฐ (Pull)
(Github์์ ๋ณ๊ฒฝํ ๋ด์ฉ์ Git ๋ก์ปฌ ์ ์ฅ์์ ์ ์ฉํฉ๋๋ค.)
> git pull origin master
(๐ฉ)
> git status ๋ฅผ ์ฌ์ฉํ์ฌ ๋ด๊ฐ ์ง๊ธ ์ด๋ค ์ํ์ธ์ง๋ฅผ ํ์ ํ๋ฉด ์ค๋ฅ ์์ธ์ ์ฝ๊ฒ ์ฐพ์ผ์ค ์ ์์๊ฑฐ์์. ๐ฅฐ
๐ก ๊ฐ์ด ๋ณด๋ฉด ์ข์ Post
[Git] ๊น(Git)์ด๋? ๊นํ๋ธ(Github)๋? / ์ฐจ์ด์
๐ Git์ด๋? ์์ค์ฝ๋ ์์ ์ ๋ฐ๋ฅธ ๋ฒ์ ์ ๊ด๋ฆฌํด์ฃผ๋ ๋ฒ์ ๊ด๋ฆฌ ์์คํ (VCS)์ด๋ค. ๋ชจ๋ ํ์ผ์ ๋ณํ๋ฅผ ๊ธฐ๋กํ๊ณ , ๊ฐ์ ํ์ผ์ ๋ํ ๊ฐ๊ธฐ ๋ค๋ฅธ ๋ฒ์ ์ ๋ณด๊ดํ๋ค. ๋ถ์ฐํ ๋ฒ์ ๊ด๋ฆฌ ์์คํ ์ผ๋ก
devjindev.tistory.com
[Git] ์์ด๋ณด๋ฅผ ์ํ ๊น ๋ช ๋ น์ด ์ ๋ฆฌ
๐ Git ์ ์ฅ์ ๋ง๋ค๊ธฐ > git init : git ์ด๊ธฐํ (์ ์ฅ์ ์์ฑ) > git config --global user.name "๋ด ์ด๋ฆ" : ๋ด ์ด๋ฆ ๋ฑ๋ก > git config --global user.email "๋ด ๋ฉ์ผ์ฃผ์" : ๋ด ๋ฉ์ผ ๋ฑ๋ก ๐ ํ์ฌ ์์ ์ ์ฅ..
devjindev.tistory.com
[GitHub] ์์ด๋ณด๋ฅผ ์ํ Visual Studio Code์ GitHub ์ฐ๋ํ๊ธฐ
๐ฝ Github ํ์๊ฐ์ ๋ฐฉ๋ฒ์ ์๋ ํฌ์คํธ๋ฅผ ์ฐธ๊ณ ํด์ฃผ์ธ์ ๐ฝ [GitHub] ์์ด๋ณด๋ฅผ ์ํ ๊นํ๋ธ ์ฌ์ฉ๋ฒ ์ด์ ๋ฆฌ 0. Github(๊นํ๋ธ)๋? ๊นํ๋ธ๋ ์ปดํจํฐ ์์ค๋ฅผ ๊ณต์ ํ๊ณ ํ์ ํ์ฌ ๊ฐ๋ฐํ ์ ์๋ ์น ํธ์ค
devjindev.tistory.com
'โ๏ธ > Git & GitHub' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[Git] ๊น ๋ช ๋ น์ด ์ ๋ฆฌ (0) | 2020.12.27 |
---|---|
[Git] ๊น(Git)์ด๋? ๊นํ๋ธ(Github)๋? / ์ฐจ์ด์ (0) | 2020.12.27 |
[GitHub] README.md์ ์ด๋ฏธ์ง ์ถ๊ฐํ๋ ๋ฐฉ๋ฒ (0) | 2020.11.25 |
[GitHub] README.md ์์ฑ๋ฒ (0) | 2020.11.25 |
[GitHub] Visual Studio Code์ GitHub ์ฐ๋ํ๊ธฐ (0) | 2020.11.25 |