git

김찬울·2021년 10월 20일
0

add 취소는 reset으로 할 수 있는데

hard, soft, standard 이렇게 세가지가 있다.

내용마저 삭제하는 것도 있다.

git branch 브렌치명 으로 브렌치를 만들 수 있으며

git checkout 브렌치명 으로 브렌지 접속가능

git cherry-pick <commit1> <commit2> ...
으로 다른 브랜치에서 복사해올 수도 있다.

git rebase -i 브랜치명
으로 수정할 수 있다.

p, pick = use commit

7 # r, reword = use commit, but edit the commit message
8 # e, edit = use commit, but stop for amending
9 # s, squash = use commit, but meld into previous commit
10 # f, fixup = like "squash", but discard this commit's log message
11 # x, exec = run command (the rest of the line) using shell
12 # b, break = stop here (continue rebase later with 'git rebase --continue')
13 # d, drop = remove commit
14 # l, label = label current HEAD with a name
15 # t, reset = reset HEAD to a label
16 # m, merge [-C | -c ] [# ]
17 # . create a merge commit using the original merge commit's
18 # . message (or the oneline, if no original merge commit was
19 # . specified). Use -c to reword the commit message.
20 #

해당 내용에 대해 수정가능

profile
코린코린이

0개의 댓글