git help -a명령을 사용하면 git의 모든 명령어를 살펴볼 수 있다.
특정 도움말을 보기 위해서는 git 명령어 -h 를 사용한다.
이는 명령어의 사용법과 옵션을 조회한다.
$ git add -h
usage: git add [<options>] [--] <pathspec>...
-n, --[no-]dry-run dry run
-v, --[no-]verbose be verbose
-i, --[no-]interactive
interactive picking
-p, --[no-]patch select hunks interactively
-e, --[no-]edit edit current diff and apply
-f, --[no-]force allow adding otherwise ignored files
-u, --[no-]update update tracked files
--[no-]renormalize renormalize EOL of tracked files (implies -u)
-N, --[no-]intent-to-add
record only the fact that the path will be added later
-A, --[no-]all add changes from all tracked and untracked files
--[no-]ignore-removal ignore paths removed in the working tree (same as --no-all)
--[no-]refresh don't add, only refresh the index
--[no-]ignore-errors just skip files which cannot be added because of errors
--[no-]ignore-missing check if - even missing - files are ignored in dry run
--[no-]sparse allow updating entries outside of the sparse-checkout cone
--[no-]chmod (+|-)x override the executable bit of the listed files
--[no-]pathspec-from-file <file>
read pathspec from file
--[no-]pathspec-file-nul
with --pathspec-from-file, pathspec elements are separated with NUL character
'Git' 카테고리의 다른 글
[Git] Git 기초 (init, clon, status, log, add, commit) (0) | 2024.09.30 |
---|---|
[Git] 저장소 만들기 (0) | 2024.09.30 |
[Git] 최초 설정 (1) | 2024.09.30 |
[Git] 파일의 상태 (1) | 2024.09.30 |
[Git] Git 기초 (0) | 2024.09.28 |