1. 추적할 파일이 없는경우. 즉, 변경된 파일이 없는경우
$ git status
# On branch master
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# .classpath
# .project
# .settings/
# WebContent/META-INF/
nothing added to commit but untracked files present (use "git add" to track)
2. 추적할 파일이 있는경우
1) 스테이징 영역(커밋하기전 작업 트리와 저장소 사이의 버퍼 공간)에 스테이징 해야할 파일이 있는경우
$ git status
# On branch 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: WebContent/index.jsp
#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# .classpath
# .project
# .settings/
# WebContent/META-INF/
no changes added to commit (use "git add" and/or "git commit -a")
2) 스테이징 영역에 스테이징 하고난 후, 커밋해야할 파일이 있는경우
$ git add WebContent/index.jsp
hp@HJS6877 /e/private project/web_project/Git/GitTest (master)
$ git status
# On branch master
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
#
# modified: WebContent/index.jsp
#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# .classpath
# .project
# .settings/
# WebContent/META-INF/