In this exercise, you will need to select changes to add to the staging area
.
You will need to use the command git add file [other-files...]
.
You may use it with the option -p
to select only a subset of the modifications inside a single filde.
To see what is already inside the staging area
,
you may use the command git status
.
The files highligted in green are in the staging area
.
git diff --cached
indicate the precise modifications that have been staged.
You may also use graphical tools such as Sourcetree or GitKraken.