gitpractice.dev

brewly — Ch.1 · Day one, all together

Exercise 11 of 11

Before you start

Everything from today

The usual loop: change, look, stage, commit. The "Write the code" button makes the change for you.

Look before you commit. Then write a summary of 8 to 50 characters that says what the commit does.

git status
which files are new or modified?
git diff
which lines changed? (new, untracked files do not show here)
git add .
stage everything, new files included
git diff --staged
review what the commit will contain
git commit -m "What you did"
save it
You can reopen this any time with “Lesson”.

Continue on a desktop

Typing git on a small screen is no fun. Open this page on a laptop or desktop to practise.

Back to the path