git에서 사용할 수 있는 기본 명령어는 터미널에 `git`을 입력하여 확인할 수 있습니다.
$ git
usage: git [--version] [--help] [-C <path>] [-c <name>=<value>]
[--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
[-p | --paginate | -P | --no-pager] [--no-replace-objects] [--bare]
[--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
[--super-prefix=<path>] [--config-env=<name>=<envvar>]
<command> [<args>]
These are common Git commands used in various situations:
start a working area (see also: git help tutorial)
clone Clone a repository into a new directory
init Create an empty Git repository or reinitialize an existing one
work on the current change (see also: git help everyday)
add Add file contents to the index
mv Move or rename a file, a directory, or a symlink
restore Restore working tree files
rm Remove files from the working tree and from the index
sparse-checkout Initialize and modify the sparse-checkout
examine the history and state (see also: git help revisions)
bisect Use binary search to find the commit that introduced a bug
diff Show changes between commits, commit and working tree, etc
grep Print lines matching a pattern
log Show commit logs
show Show various types of objects
status Show the working tree status
grow, mark and tweak your common history
branch List, create, or delete branches
'Git' 카테고리의 다른 글
[Git] Git Pull 실행 시 "Your local changes would be overwritten by merge" 에러 해결 방법 (0) | 2024.12.24 |
---|---|
[Git] 형상관리란? (0) | 2024.08.29 |
[Git] Git 브랜치 병합 및 변경 사항 푸시하기: Step-by-Step 가이드 (0) | 2024.08.12 |