Short Form Status in Git
File status messages can seem a bit verbose. Therefore, it is possible to output the status in a short form. In this form, the file status will be shown with the corresponding letter before the file name:
Status | Description |
---|---|
no letter | unmodified |
M |
modified |
T |
file type changed |
A |
added |
D |
deleted |
R |
renamed |
C |
copied |
U |
updated but unmerged |
To display the status in short form, you need to use the following command:
git status -short
Or its short form:
git status -s
View the status in short form.
What is the state of the file if it was given:
M text.txt
What is the state of the file if it was given:
A text.txt
What is the state of the file if it was given:
D text.txt
What is the state of the file if it was given:
R text.txt
What is the state of the file if it was given:
C text.txt
What states are the files in if the following was issued for them:
A text1.txt
text2.txt
D text3.txt
M text4.txt