Git/Git: 명령어 정리
[Git:명령어 정리] add 명령어 정리
데브마우스
2024. 1. 9. 15:29
add 명령어 정리
git add 뒤에 옵션으로 입력한 파일 혹은 디렉터리를 스테이지에 추가하여 커밋할 수 있게 합니다.
git add [--verbose | -v] [--dry-run | -n] [--force | -f] [--interactive | -i] [--patch | -p]
[--edit | -e] [--[no-]all | --[no-]ignore-removal | [--update | -u]] [--sparse]
[--intent-to-add | -N] [--refresh] [--ignore-errors] [--ignore-missing] [--renormalize]
[--chmod=(+|-)x] [--pathspec-from-file=<file> [--pathspec-file-nul]]
[--] [<pathspec>…]
git add 사용 방법
test.txt 파일을 추가합니다.
git add test.txt
해당 디렉터리의 모든 파일 및 폴더를 추가합니다.
git add .
참고 자료
Git/mingw64/share/doc/git-doc/git-add.html