1 개요[ | ]
- git add -A, git add --all
- 모든 파일과 폴더를 commit 대상으로 추가하는 git 명령어
- 파일 삭제도 commit 대상으로 포함된다.
2 예시[ | ]
Console
Copy
root@zetawiki:~/project1# git status
On branch master
Your branch is up-to-date with 'origin/master'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: script/hello.sh
Untracked files:
(use "git add <file>..." to include in what will be committed)
new_test_file.txt
no changes added to commit (use "git add" and/or "git commit -a")
Console
Copy
root@zetawiki:~/project1# git add -A
root@zetawiki:~/project1# git status
On branch master
Your branch is up-to-date with 'origin/master'.
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)
new file: new_test_file.txt
modified: script/hello.sh
3 같이 보기[ | ]
편집자 Jmnote 27.122.242.78
로그인하시면 댓글을 쓸 수 있습니다.