Git - File Status

> Code - (Programming|Computer) Language > Code Versioning > Git

1 - About

The status of a file in a working directory is one of:

where:

  • untracked See untracked
  • unmodified
  • modified
  • staged means that the file is in the index (proposed next commit)
Advertising

3 - Tracked / Untracked

Each file in a working directory can be in one of two states:

3.1 - Tracked

Tracked files are files that were in the last snapshot; they can have the status:

  • unmodified,
  • modified,
  • or staged (ie in the index for the next commit)

3.2 - Untracked

Untracked files are everything else – any files in the working directory that were not in the last snapshot and are not in the staging area.

4 - Management

4.1 - Modification

Advertising

4.2 - Get

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:   syntax.php

no changes added to commit (use "git add" and/or "git commit -a")
code/version/git/status.txt · Last modified: 2018/05/23 12:14 by gerardnico