Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
Tags
- Git_정리
- git
- HTML
- MySQL
- asp.net
- 다이어그램
- CSS
- 배열
- jsp
- Linux
- Spring_오류정리
- Git_명령어정리
- SQL
- DML
- 자바스크립트
- Linux_명령어정리
- 아파치톰캣
- spring
- SQL_용어정리
- github
- 인스턴스
- 자바
- vb.net
- java
- JavaScript
- 인덱스
- workbench
- json
- 이클립스
- Spring_에러정리
Archives
- Today
- Total
데브마우스
[Git:명령어 정리] add 명령어 정리 본문
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
'Git > Git: 명령어 정리' 카테고리의 다른 글
[Git:명령어 정리] 작업 되돌리는 명령어 정리: restore, reset, revert (0) | 2024.01.10 |
---|---|
[Git:명령어 정리] commit 명령어 정리 (0) | 2024.01.09 |
[Git:명령어 정리] diff 명령어 정리 (0) | 2024.01.09 |
[Git:명령어 정리] log 명령어 정리 (0) | 2024.01.09 |
[Git:명령어 정리] init 명령어 정리 (0) | 2024.01.09 |