git status는 디렉터리 상태를 보고하는 명령입니다. 아직 어떤 작업도 하지 않은 초기 상태입니다.

    administrator@vmgate:~/gittest$ git status
    On branch master
    
    No commits yet
    
    nothing to commit (create/copy files and use "git add" to track)

    echo 명령으로 디렉터리에 파일을 생성해 보겠습니다. 출력 재지정 기호 >를 사용하여 echo 명령의 출력을 파일로 재지정합니다.

    administrator@vmgate:~/gittest$ echo 'l lived meaninglessly.' > failure.txt

    git status로 확인해 보면 작업 디렉터리에서 파일 변화를 추적하지 않는(Untracked files) 상태임을 알 수 있습니다.

    administrator@vmgate:~/gittest$ git status
    On branch master
    
    No commits yet
    
    Untracked files:
      (use "git add <file>..." to include in what will be committed)
        failure.txt
    
    nothing added to commit but untracked files present (use "git add" to track)
    신간 소식 구독하기
    뉴스레터에 가입하시고 이메일로 신간 소식을 받아 보세요.