git add -A

1 개요[ | ]

git add -A, git add --all
  • 모든 파일과 폴더를 commit 대상으로 추가하는 git 명령어
  • 파일 삭제도 commit 대상으로 포함된다.

2 예시[ | ]

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")
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 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}