git 명령 빈도


commandgoogle results%
commit528,0007.981980075
push523,0007.906393143
pull506,0007.649397572
clone489,0007.392402002
checkout470,0007.105171658
add446,0006.742354382
branch439,0006.636532676
log388,0005.865545964
diff369,0005.578315621
fetch355,0005.36667221
merge354,0005.351554823
init343,0005.185263572
status286,0004.323572541
reset267,0004.036342197
tag246,0003.718877081
rebase203,0003.068829461
rm142,0002.146668884
show104,0001.572208197
bisect62,8000.9493718726
grep49,4000.7467988934
mv44,7000.6757471768



git 명령어 매뉴얼 보는 방법


  • git (command) --help : 명령어에 관한 도움말 매뉴얼을 볼 수 있는 명령
git commit --help
commit의 도움말에 나와있는 옵션을 예로 들어보겠다.

-a
--all

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 의 결과가 나온다.

-m <msg>
--message=<msg>

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 메세지를 인라인에서 바로 작성할 수 있다.




+ Recent posts