Section 2 - Exercises
Section 2 - Exercises
Creating Snapshots
2- View the status of the working directory and the staging area.
5- Create a commit.
8- Update one of the files. View the changes in the working directory.
git init
echo hello > file1.txt
echo hello > file2.txt
2- View the status of the working directory and the staging area.
git status
git status -s
git add .
5- Create a commit.
git log