git 명령 빈도
command | google results | % |
commit | 528,000 | 7.981980075 |
push | 523,000 | 7.906393143 |
pull | 506,000 | 7.649397572 |
clone | 489,000 | 7.392402002 |
checkout | 470,000 | 7.105171658 |
add | 446,000 | 6.742354382 |
branch | 439,000 | 6.636532676 |
log | 388,000 | 5.865545964 |
diff | 369,000 | 5.578315621 |
fetch | 355,000 | 5.36667221 |
merge | 354,000 | 5.351554823 |
init | 343,000 | 5.185263572 |
status | 286,000 | 4.323572541 |
reset | 267,000 | 4.036342197 |
tag | 246,000 | 3.718877081 |
rebase | 203,000 | 3.068829461 |
rm | 142,000 | 2.146668884 |
show | 104,000 | 1.572208197 |
bisect | 62,800 | 0.9493718726 |
grep | 49,400 | 0.7467988934 |
mv | 44,700 | 0.6757471768 |
git 명령어 매뉴얼 보는 방법
- git (command) --help : 명령어에 관한 도움말 매뉴얼을 볼 수 있는 명령
git commit --help
commit의 도움말에 나와있는 옵션을 예로 들어보겠다.
Tell the command to automatically stage files that have been modified and deleted, but new files you have not told Git about are not affected.
수정이나 삭제한 파일을 자동으로 스테이지에 올려준다.
git commit -a
-a 옵션을 주면 자동으로 git add (파일명) +git commit 의 결과가 나온다.
Use the given <msg> as the commit message. If multiple -m
options are given, their values are concatenated as separate paragraphs.
The -m
option is mutually exclusive with -c
, -C
, and -F
.
지정된 <msg>를 커밋 메세지로 사용한다. 다중 -m 옵셩을 지정하면 별도로 단락으로 연결된다.
git commit -am(-a and -m)
-에디터를 띄우지 않고 수정, 삭제한 commit 메세지를 인라인에서 바로 작성할 수 있다.
'Development > Git' 카테고리의 다른 글
[Git - 오늘의 Git] git reset, git revert / 과거 버전으로 돌아가기 / commit 취소 작업 (0) | 2019.03.26 |
---|---|
[Git - 오늘의 Git] git log, git diff / commit 시킨 파일의 변경 사항 확인하는 법 (0) | 2019.03.20 |
[Git - 오늘의 Git] Git error: CRLF will be replaced by LF file.txt / core.autocrlf (0) | 2019.03.20 |
[Git - 오늘의 Git] git stage area / commit 전에 add를 해야하는 이유 (0) | 2019.03.19 |
[Git - 오늘의 Git] 저장소 만들기, git이 관리할 파일 등록, 버전 만들기 (0) | 2019.03.14 |