codedot.log
๋ก๊ทธ์ธ
codedot.log
๋ก๊ทธ์ธ
TIL(30) Git
codedot
ยท
2021๋ 8์ 1์ผ
ํ๋ก์ฐ
0
Achievement Goals
git
0
Achievement Goals โ๐ป
Git
Git์ ํ๊ฒฝ์ค์ ์ ํ ์ ์๋ค.
๋ฒ์ ๊ด๋ฆฌ ์์คํ ์ ํ์์ฑ์ ์ดํดํ ์ ์๋ค.
Github๊ณผ Git์ ๊ด๊ณ์ ๋ํด ์ดํดํ ์ ์๋ค.
Repository์ ๋ํด ์ดํดํ ์ ์๋ค.
Local Repository์ Remote Repository์ ์ฐจ์ด๋ฅผ ์ดํดํ ์ ์๋ค.
์์ ์ด ์ฌ์ฉํ๋ OS์ git ์ค์นํ๋ ๋ฐฉ๋ฒ์ ์ตํ๊ณ ์ค์ตํ๋ค.
git --version ๋ช ๋ น์ด๋ก ํฐ๋ฏธ๋์์ git์ด ์ค์น๋์๋์ง ํ์ธํ ์ ์๋ค.
CLI ํ๊ฒฝ์์ git ๋ช ๋ น์ด๋ฅผ ์ ๋ ฅํ ์ ์๋ค.
ํฐ๋ฏธ๋๋ก ์๊ฒฉ ์๋ฒ์ ์ ์ํ๊ณ git์ ์ค์นํ๊ณ ์ญ์ ํ ๋ค์ ์ค์นํ ์ ์๋ค.
์ํฉ์ ๋ฐ๋ผ Github์ ๊ธฐ๋ฅ๊ณผ Git ๋ช ๋ น์ด๋ฅผ ์ฌ์ฉํ ์ ์๋ค.
Fork
clone
status
restore
add
commit
reset
log
pull
push
init
remote add
remote -v
Git์ ์ธ ๊ฐ์ง ์์ญ ๋ฐ ์ํ๋ฅผ ์ดํดํ ์ ์๋ค. (Committed, modified, staged)
Remote Repository๋ฅผ ํ์ด์ ๊ณต์ ํ๋ฉฐ ํ์ ์ ํ ์ ์๋ค.
์ถฉ๋์ด ๋ฐ์ํ์ ๊ฒฝ์ฐ ํด๊ฒฐํ ์ ์๋ค.
Git Repository์ commit๋์ง ์์ ๋ณ๊ฒฝ ์ฌํญ์ ์ทจ์ํ ์ ์๋ค.
reset HEAD
<file>
checkout --
<file>
ํ์ ์ ์ํ git ๊ฐ๋ ์ ์ดํดํ ์ ์๋ค.
branch, merge์ ๊ฐ๋
remote repository์์ origin๊ณผ upstream์ ์ฐจ์ด์
codedot
Loding...
ํ๋ก์ฐ
์ด์ ํฌ์คํธ
TIL(29) ๋ฆฌ๋ ์ค
๋ค์ ํฌ์คํธ
TIL(31) ๋ฐฐ์ด,๊ฐ์ฒด
0๊ฐ์ ๋๊ธ
๋๊ธ ์์ฑ