Git ์ด๋ ?
https://substory.tistory.com/23
Git๊ณผ Github
๐ธ Git ? ๋ฒ์ ๊ด๋ฆฌ ํด ๋ฒ์ ๊ด๋ฆฌ๋ ์ ? ์งํ์ค์ธ ํ๋ก์ ํธ์ ์์ ๋ด์ญ์ ๋ฐฑ์ ํ๊ณ ๊ด๋ฆฌํ๊ธฐ ์ํด์ ํน์ง์ ? ํด๋์ ๋ชจ๋ ์์ ๋ด์ญ๋ค์ด ์ ์ฅ๋๋ .git์ด๋ผ๋ ์ ์ฅ๊ณต๊ฐ์ด ์๋๋ฐ .git์์ ์์
substory.tistory.com
1. Git์ ์ฌ์ฉํ๊ธฐ ์ ์ค๋น๋ฌผ - Git๊ณผ Visual Studio Code๋ฅผ ์ค์นํ๋ค.
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
https://code.visualstudio.com/download
Download Visual Studio Code - Mac, Linux, Windows
Visual Studio Code is free and available on your favorite platform - Linux, macOS, and Windows. Download Visual Studio Code to experience a redefined code editor, optimized for building and debugging modern web and cloud applications.
code.visualstudio.com
Git์ ๊ด๋ฆฌํ๋ ๋ฐฉ๋ฒ ๋ ๊ฐ์ง
- ๋ง์ฐ์ค๋ก ์ธ ์ ์๊ฒ GUI๋ก ๋ง๋ค์ด์ง ์ํํธ์จ์ด๋ฅผ ํตํด ๊ด๋ฆฌ ๋ํ์ ์ผ๋ก Source Tree๋ฅผ ์ฐ๋ ๊ฒ
- Command line Interface๋ก ๋ช ๋ น์ด๋ฅผ ์ ๋ ฅํ์ฌ ๊ด๋ฆฌ
๋ฐฉ๋ฒ 1
https://www.sourcetreeapp.com/
Sourcetree | Free Git GUI for Mac and Windows
A Git GUI that offers a visual representation of your repositories. Sourcetree is a free Git client for Windows and Mac.
www.sourcetreeapp.com
ํ์๊ฐ์ ํ ์ค์น
.git์์ ์๋ก์ด ํ์ผ๋ค์ ์์ฑํ ๊ฒฝ์ฐ
๋ฐฉ๋ฒ 2
์ด์ Command line Interface๋ก ๋ช ๋ น์ด๋ฅผ ์ ๋ ฅํ๊ธฐ ์ํด์ ๋จ์ถํค ctrl + ` ๋ก ํฐ๋ฏธ๋ ์ฐฝ์ ์ด์ด์ค๋๋ค
> git init ๋ช ๋ น์ด๋ฅผ ์ ๋ ฅํ์ฌ ๋น ์ ์ฅ์๋ฅผ ๋ง๋ค์ด์ค ๋ค
> git config --global user.name "๋ณธ์ธ์ ์ด๋ฆ" ๊ณผ
> git config --global user.email "๋ณธ์ธ์ ๋ฉ์ผ์ฃผ์" ๋ฅผ ์ ๋ ฅํฉ๋๋ค
์ฌ๊ธฐ๊น์ง ์๋์ ๊ฐ์ด ์์ค ํธ๋ฆฌ๋ก ์ด๋ฉ์ผ๊ณผ ์ด๋ฆ์ ์ ๋ ฅํ ๊ฒ๊ณผ ๊ฐ์ต๋๋ค
> git status ํ์์บก์์ ๋ด์๊ฒ ์๋์ง Git์ ๋์ผ๋ก ๋ณด๊ธฐ์ํ ๋ช ๋ น์ด
> git add -A ์ด๊ณณ์ ๋ชจ๋ ๊ฑธ git์ ํ์์บก์์ ๋ฃ๋๋ค๋ ์๋ฏธ
> git status
์ฌ๊ธฐ๊น์ง ์๋์ ๊ฐ์ด ์บก์ ์์ผ๋ก add ํ ๊ฒ๊ณผ ๊ฐ์ต๋๋ค
> git commit -m "์ค๋ช " ํ์ฌ๊น์ง ์์ฑํ ๋ชจ๋ ํ์ผ์ด ๊ธฐ๋ก๋ฉ๋๋ค.
> git log ๋ก ์บก์์ ์ ๋ณด๋ค๊ณผ ์ค๋ช ๋ค์ ๋ณผ ์ ์์ต๋๋ค