In this tutorial you will learn how Git status command works.
Code used during this tutorial:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# Git status command # Create an empty Git repository git init echo "text-1" > file-1.txt # Show the working tree status git status echo "text-2" > file-2.txt git status git add file-1.txt git status git add file-2.txt git status git commit -m "add file-1.txt and file-2.txt" git status echo "text-1 v2" >> file-1.txt git status # Man page man git-status |