forked from johnhongtony/katsstudy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommand.txt
More file actions
54 lines (39 loc) ยท 1.42 KB
/
command.txt
File metadata and controls
54 lines (39 loc) ยท 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
๏ปฟ
//๋ฏผ์ ๊น
https://github.com/math6646/minsuTest.git
//๋ด ๋ก์ปฌ ์ ์ฅ์ ๋ง๋ค๊ธฐ
git init
//๋ก์ปฌ ์ ์ฅ์ ์์ ์คํ
์ด์ง๋ก add ํ๊ธฐ
git add . ๋๋ git add ํ์ผ๋ช
git commit
//๋ก์ปฌ ์ ์ฅ์์ ์์คํ์ผ ์ํ ํ์ธํ๊ธฐ
git status
//ํด๋น ์๊ฒฉ ์ ์ฅ์์ ๋ด์ฉ๋ค์ ๋ณต์ ํด์ด
git clone https://github.com/khsin510/katsstudy.git
//ํด๋น ์๊ฒฉ ์ ์ฅ์ ์ฐ๊ฒฐ
git remote add origin https://github.com/khsin510/katsstudy.git
//์ ์ฅ๋ ์๊ฒฉ ์ ์ฅ์ ํ์ธ
git remote -v
//ํ์ผ ์์ํ๋ก ๋๋๋ฆฌ๊ธฐ ์คํ
์ด์ง์ add์ ๋๋๋ฆฌ๊ธฐ
git checkout test.txt
//ํ์ผ ์์ํ๋ก ๋๋๋ฆฌ๊ธฐ ์คํ
์ด์ง์ addํ ์คํ
์ด์ง์ ์์ ์ ๋๋๋ฆฌ๊ธฐ
git reset test.txt
//์๊ฒฉ์ ์ฅ์์ ํ์ผ ์ฌ๋ฆฌ๊ธฐ
git push origin master
//์๊ฒฉ์ ์ฅ์์ ํ์ผ ๋ค์ด๋ฐ๊ธฐ
git pull origin master
//์ด๋ค branch๊ฐ ์๋์ง ํ์ธ ํ๊ณ ์ถ์ ๊ฒฝ์ฐ
git branch (์ด๋ * ํ์๋ ํ์ฌ ์ ํ ๋์ด์ ธ ์๋ branch)
//branch๋ฅผ ์์ฑ ํ๊ณ ์ ํ ๊ฒฝ์ฐ
git branch (์์ฑํ๊ณ ์ ํ๋ branch ๋ช
)
ex> git branch test1
//branch ๋ณ๊ฒฝ ํ๊ณ ์ ํ ๊ฒฝ์ฐ
git checkout (๋ณ๊ฒฝํ๊ณ ์ ํ๋ branch ๋ช
)
ex> git checkout test1
ex> git checkout master
//๋ branch ๋ณํฉ ํ๊ณ ์ ํ ๊ฒฝ์ฐ
git merge (์์ฑํ branch)
ex> git merge test1
//branch์ ์ญ์ ํ๊ณ ์ ํ ๊ฒฝ์ฐ
git branch -d (์ญ์ ํ๊ณ ์ ํ๋ branch ๋ช
)
ex> git branch -d test1