16. The staging area
All the modified/added/deleted files that are
going to be commited
17. git status
# On branch master
#
# Initial commit
#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# readme.txt
nothing added to commit but untracked files present (use "git add" to track)
18. Add readme to stage
git add readme.txt
This command adds readme.txt (or changes in
readme.txt) to staging area
19. Alternative adding all files to stage
git add --all
This command adds (add) all (deleted/
created/modified) files to staging area
20. git status
# On branch master
#
# Initial commit
#
# Changes to be committed:
# (use "git rm --cached <file>..." to unstage)
#
# new file: readme.txt
#
21. Commit changes
git commit -m “Initial Commit”
This command creates the commit containing
the staged changes